#include <Thread.h>
Public Member Functions | |
ThreadPool (uint initialThreads=1, uint maxThreads=100) | |
ctor | |
~ThreadPool () | |
When this object destructs, we block until all threads are returned to the pool. | |
void | RunThread (ThreadFunc proc, ThreadParam param) |
Exectutes a function on a thread in the pool. The thread returns to the pool when the function returns. Blocks if needed until there is a thread available. |