Function setupWorkerThreads
Sets up the thread pool used for executing worker tasks.
void setupWorkerThreads
(
uint num = logicalProcessorCount()
);
This function gives explicit control over the number of worker threads.
Note, to have an effect the function must be called before any worker
tasks are started. Otherwise the default number of worker threads
(logicalProcessorCount
) will be used automatically.
Parameters
Name | Description |
---|---|
num | The number of worker threads to initialize. Defaults to
logicalProcessorCount . |