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 _max=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  _max = 10  ) 

PThreadPoolBase::~PThreadPoolBase (  ) 


Member Function Documentation

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

Implemented in PThreadPool< WorkUnit_T, WorkerThread_T >.

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

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

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


Member Data Documentation

PMutex PThreadPoolBase::listMutex [protected]

WorkerList_t PThreadPoolBase::workers [protected]

unsigned PThreadPoolBase::maxWorkerSize [protected]


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 01:21:39 2008 for PTLib by  doxygen 1.5.1