TaskPool.this

this(AbstractTask * task, int priority = int.max)
No documentation available for this declaration.
this() @trusted

Default constructor that initializes a TaskPool with totalCPUs - 1 worker threads. The minus 1 is included because the main thread will also be available to do work.

Note

On single-core machines, the primitives provided by TaskPool

operate transparently in single-threaded mode.

this(size_t nWorkers) @trusted

Allows for custom number of worker threads.