TaskPool.this

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.

  1. this()
    class TaskPool
    @trusted
    this
    ()
  2. this(size_t nWorkers)

Meta