PTLib
Version 2.10.4
|
Low Level thread pool. More...
#include <threadpool.h>
Classes | |
struct | GroupInfo |
class | InternalWork |
class | WorkerThread |
Public Types | |
typedef std::map< Work_T *, InternalWork > | ExternalToInternalWorkMap_T |
typedef std::map< std::string, GroupInfo > | GroupInfoMap_t |
Public Member Functions | |
PThreadPool (unsigned maxWorkers=10, unsigned maxWorkUnits=0) | |
bool | AddWork (Work_T *work, const char *group=NULL) |
bool | RemoveWork (Work_T *work, bool removeFromWorker=true) |
Public Attributes | |
ExternalToInternalWorkMap_T | m_externalToInternalWorkMap |
GroupInfoMap_t | m_groupInfoMap |
Low Level thread pool.
typedef std::map<Work_T *, InternalWork> PThreadPool< Work_T >::ExternalToInternalWorkMap_T |
typedef std::map<std::string, GroupInfo> PThreadPool< Work_T >::GroupInfoMap_t |
PThreadPool< Work_T >::PThreadPool | ( | unsigned | maxWorkers = 10 , |
unsigned | maxWorkUnits = 0 |
||
) | [inline] |
bool PThreadPool< Work_T >::AddWork | ( | Work_T * | work, |
const char * | group = NULL |
||
) | [inline] |
bool PThreadPool< Work_T >::RemoveWork | ( | Work_T * | work, |
bool | removeFromWorker = true |
||
) | [inline] |
ExternalToInternalWorkMap_T PThreadPool< Work_T >::m_externalToInternalWorkMap |
Referenced by PThreadPool< Work_T >::AddWork().
GroupInfoMap_t PThreadPool< Work_T >::m_groupInfoMap |
Referenced by PThreadPool< Work_T >::AddWork().