vibe.d beta banner
get vibe.d
0.10.0

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

Function setupWorkerThreads

Sets up num worker threads.

void setupWorkerThreads (
  uint num = logicalProcessorCount()
) @safe;

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.

Parameters

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

See also

runWorkerTask, runWorkerTaskH, runWorkerTaskDist

Authors

Sönke Ludwig

Copyright

© 2012-2019 RejectedSoftware e.K.

License

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