PThreadPool< WorkUnit_T, WorkerThread_T > Class Template Reference

#include <sockagg.h>

Inheritance diagram for PThreadPool< WorkUnit_T, WorkerThread_T >:

PThreadPoolBase PObject

List of all members.

Public Types

typedef std::map< WorkUnit_T
*, WorkerThread_T * > 
WorkUnitMap_T

Public Member Functions

 PThreadPool (unsigned maximum=10)
virtual PThreadPoolWorkerBaseCreateWorkerThread ()
bool AddWork (WorkUnit_T *workUnit)
bool RemoveWork (WorkUnit_T *workUnit)

Protected Attributes

WorkUnitMap_T workUnitMap

template<class WorkUnit_T, class WorkerThread_T>
class PThreadPool< WorkUnit_T, WorkerThread_T >


Member Typedef Documentation

template<class WorkUnit_T , class WorkerThread_T >
typedef std::map<WorkUnit_T *, WorkerThread_T *> PThreadPool< WorkUnit_T, WorkerThread_T >::WorkUnitMap_T


Constructor & Destructor Documentation

template<class WorkUnit_T , class WorkerThread_T >
PThreadPool< WorkUnit_T, WorkerThread_T >::PThreadPool ( unsigned  maximum = 10  )  [inline]


Member Function Documentation

template<class WorkUnit_T , class WorkerThread_T >
bool PThreadPool< WorkUnit_T, WorkerThread_T >::AddWork ( WorkUnit_T *  workUnit  )  [inline]

template<class WorkUnit_T , class WorkerThread_T >
virtual PThreadPoolWorkerBase* PThreadPool< WorkUnit_T, WorkerThread_T >::CreateWorkerThread (  )  [inline, virtual]

Implements PThreadPoolBase.

template<class WorkUnit_T , class WorkerThread_T >
bool PThreadPool< WorkUnit_T, WorkerThread_T >::RemoveWork ( WorkUnit_T *  workUnit  )  [inline]


Member Data Documentation

template<class WorkUnit_T , class WorkerThread_T >
WorkUnitMap_T PThreadPool< WorkUnit_T, WorkerThread_T >::workUnitMap [protected]


The documentation for this class was generated from the following file:

Generated on Fri Apr 10 22:33:53 2009 for PTLib by  doxygen 1.5.8