[#ThreadPool-Start] = xref:ThreadPool.adoc[ThreadPool]::Start :relfileprefix: ../ :mrdocs: Start worker threads. == Synopsis Declared in `<util/threadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e2046a148)]] void Start(int num_workers); ---- == Description Creates and launches `num_workers` threads that begin executing tasks from the queue. If the pool is already started, throws. Must be called from a controller (non‐worker) thread. == Parameters [cols="1,4"] |=== | Name| Description | *num_workers* | Number of worker threads to create and launch. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#