PTLib  Version 2.14.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PThreadPool< Work_T >::WorkerThread Class Referenceabstract

#include <threadpool.h>

Inheritance diagram for PThreadPool< Work_T >::WorkerThread:
Collaboration diagram for PThreadPool< Work_T >::WorkerThread:

Public Member Functions

virtual void AddWork (Work_T *work)=0
 
virtual void RemoveWork (Work_T *work)=0
 
virtual void Main ()=0
 

Protected Member Functions

 WorkerThread (PThreadPool &pool, Priority priority=NormalPriority, const char *threadName=NULL)
 

Protected Attributes

PThreadPoolm_pool
 

Constructor & Destructor Documentation

template<class Work_T>
PThreadPool< Work_T >::WorkerThread::WorkerThread ( PThreadPool pool,
Priority  priority = NormalPriority,
const char *  threadName = NULL 
)
inlineprotected

Member Function Documentation

template<class Work_T>
virtual void PThreadPool< Work_T >::WorkerThread::AddWork ( Work_T *  work)
pure virtual
template<class Work_T>
virtual void PThreadPool< Work_T >::WorkerThread::Main ( )
pure virtual
template<class Work_T>
virtual void PThreadPool< Work_T >::WorkerThread::RemoveWork ( Work_T *  work)
pure virtual

Member Data Documentation

template<class Work_T>
PThreadPool& PThreadPool< Work_T >::WorkerThread::m_pool
protected

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