setupWorkerThreads

Sets up the thread pool used for executing worker tasks.

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.

@safe
void
setupWorkerThreads

Parameters

num uint

The number of worker threads to initialize. Defaults to logicalProcessorCount.

See Also

runWorkerTask, runWorkerTaskH, runWorkerTaskDist

Meta