QTrk
|
#include <threads.h>
Public Member Functions | |
ThreadPool (TFunctor f, int Nthreads=-1) | |
~ThreadPool () | |
void | ProcessArray (TWorkItem *items, int n) |
void | AddWork (TWorkItem w) |
void | WaitUntilDone () |
bool | IsDone () |
void | Quit () |
Protected Member Functions | |
void | ItemDone () |
bool | GetNewItem (TWorkItem &item) |
Static Protected Member Functions | |
static void | ThreadEntryPoint (void *param) |
Protected Attributes | |
std::vector< Threads::Handle * > | threads |
Threads::Mutex | workMutex |
std::list< TWorkItem > | work |
int | inProgress |
Atomic< bool > | quit |
TFunctor | worker |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inlinestaticprotected |
Definition at line 216 of file threads.h.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |