PThreadPoolBase Class Reference

#include <sockagg.h>

Inheritance diagram for PThreadPoolBase:

PObject PThreadPool< WorkUnit_T, WorkerThread_T >

List of all members.

Public Member Functions

 PThreadPoolBase (unsigned maximum=10)
 ~PThreadPoolBase ()
virtual PThreadPoolWorkerBaseCreateWorkerThread ()=0
virtual PThreadPoolWorkerBaseAllocateWorker ()

Protected Types

typedef std::vector
< PThreadPoolWorkerBase * > 
WorkerList_t

Protected Member Functions

virtual bool CheckWorker (PThreadPoolWorkerBase *worker)
void StopWorker (PThreadPoolWorkerBase *worker)

Protected Attributes

PMutex listMutex
WorkerList_t workers
unsigned maxWorkerSize


Member Typedef Documentation

typedef std::vector<PThreadPoolWorkerBase *> PThreadPoolBase::WorkerList_t [protected]


Constructor & Destructor Documentation

PThreadPoolBase::PThreadPoolBase ( unsigned  maximum = 10  ) 

PThreadPoolBase::~PThreadPoolBase (  ) 


Member Function Documentation

virtual PThreadPoolWorkerBase* PThreadPoolBase::AllocateWorker (  )  [virtual]

virtual bool PThreadPoolBase::CheckWorker ( PThreadPoolWorkerBase worker  )  [protected, virtual]

virtual PThreadPoolWorkerBase* PThreadPoolBase::CreateWorkerThread (  )  [pure virtual]

void PThreadPoolBase::StopWorker ( PThreadPoolWorkerBase worker  )  [protected]


Member Data Documentation

unsigned PThreadPoolBase::maxWorkerSize [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