setupWorkerThreads

Sets up num worker threads.

This function gives explicit control over the number of worker threads. Note, to have an effect the function must be called prior to related worker tasks functions which set up the default number of worker threads implicitly.

@safe nothrow
void
setupWorkerThreads
(
uint num = 0
)

Parameters

num uint

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

See Also

runWorkerTask, runWorkerTaskH, runWorkerTaskDist

Meta