vibe.d beta banner
get vibe.d
0.7.31

Asynchronous I/O that doesn’t get in your way, written in D

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

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.