[#ThreadPool-Start]
= xref:ThreadPool.adoc[ThreadPool]::Start
:relfileprefix: ../
:mrdocs:

Start worker threads&period;

== Synopsis

Declared in `&lt;util&sol;threadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f951f99b168)&rsqb;&rsqb;
void
Start(int num&lowbar;workers);
----

== Description

Creates and launches `num&lowbar;workers` threads that begin executing tasks from the queue&period; If the pool is already started, throws&period;

Must be called from a controller (non&hyphen;worker) thread&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *num&lowbar;workers*
| Number of worker threads to create and launch&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
