#include <sockagg.h>
Inheritance diagram for PThreadPool< WorkUnit_T, WorkerThread_T >:
Public Types | |
typedef std::map< WorkUnit_T *, WorkerThread_T * > | WorkUnitMap_T |
Public Member Functions | |
PThreadPool (unsigned _max=10) | |
virtual PThreadPoolWorkerBase * | CreateWorkerThread () |
bool | AddWork (WorkUnit_T *workUnit) |
bool | RemoveWork (WorkUnit_T *workUnit) |
Protected Attributes | |
WorkUnitMap_T | workUnitMap |
typedef std::map<WorkUnit_T *, WorkerThread_T *> PThreadPool< WorkUnit_T, WorkerThread_T >::WorkUnitMap_T |
PThreadPool< WorkUnit_T, WorkerThread_T >::PThreadPool | ( | unsigned | _max = 10 |
) | [inline] |
virtual PThreadPoolWorkerBase* PThreadPool< WorkUnit_T, WorkerThread_T >::CreateWorkerThread | ( | ) | [inline, virtual] |
Implements PThreadPoolBase.
bool PThreadPool< WorkUnit_T, WorkerThread_T >::AddWork | ( | WorkUnit_T * | workUnit | ) | [inline] |
bool PThreadPool< WorkUnit_T, WorkerThread_T >::RemoveWork | ( | WorkUnit_T * | workUnit | ) | [inline] |
WorkUnitMap_T PThreadPool< WorkUnit_T, WorkerThread_T >::workUnitMap [protected] |