Function 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.
Prototype
void setupWorkerThreads(
uint num = logicalProcessorCount()
);
Parameters
Name | Description |
---|---|
num | The number of worker threads to initialize. Defaults to
logicalProcessorCount . |
See also
Authors
Sönke Ludwig
Copyright
© 2012-2015 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.