ThreadPool

Fake synchronous version of the thread pool For measurement purpose, makes it easier to measure actual CPU time spent.

Constructors

this
this(int numThreads, int maxThreads, size_t stackSize)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

numThreads
int numThreads()
Undocumented in source. Be warned that the author may not have intended to support it.
parallelFor
void parallelFor(int count, ThreadPoolDelegate dg)
Undocumented in source. Be warned that the author may not have intended to support it.
parallelForAsync
void parallelForAsync(int count, ThreadPoolDelegate dg)
Undocumented in source. Be warned that the author may not have intended to support it.
waitForCompletion
void waitForCompletion()

Wait for completion of the previous parallelFor, if any.

Manifest constants

constantThreadId
enum constantThreadId;
Undocumented in source.

Meta