A pool of pre-created threads. More...
#include <Thread.h>
Public Member Functions | |
| ThreadPool (nuint initialThreads=1, nuint 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. | |
A pool of pre-created threads.
1.7.1