vibe.d beta banner
get vibe.d
0.7.30

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

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

See also

runWorkerTask, runWorkerTaskH, runWorkerTaskDist

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.