#include <threadpool.h>
Inheritance diagram for PThreadPool< Work_T >::QueuedWorkerThread:
Public Member Functions | |
QueuedWorkerThread (PThreadPool &pool) | |
void | AddWork (Work_T *work) |
void | RemoveWork (Work_T *) |
unsigned | GetWorkSize () const |
void | Main () |
void | Shutdown () |
Protected Types | |
typedef std::queue< Work_T * > | Queue |
Protected Attributes | |
Queue | m_queue |
PMutex | m_mutex |
PSemaphore | m_available |
typedef std::queue<Work_T *> PThreadPool< Work_T >::QueuedWorkerThread::Queue [protected] |
PThreadPool< Work_T >::QueuedWorkerThread::QueuedWorkerThread | ( | PThreadPool & | pool | ) | [inline] |
void PThreadPool< Work_T >::QueuedWorkerThread::AddWork | ( | Work_T * | work | ) | [inline, virtual] |
Implements PThreadPool< Work_T >::WorkerThread.
unsigned PThreadPool< Work_T >::QueuedWorkerThread::GetWorkSize | ( | ) | const [inline] |
void PThreadPool< Work_T >::QueuedWorkerThread::Main | ( | ) | [inline, virtual] |
Implements PThreadPool< Work_T >::WorkerThread.
void PThreadPool< Work_T >::QueuedWorkerThread::RemoveWork | ( | Work_T * | ) | [inline, virtual] |
Implements PThreadPool< Work_T >::WorkerThread.
void PThreadPool< Work_T >::QueuedWorkerThread::Shutdown | ( | ) | [inline] |
PSemaphore PThreadPool< Work_T >::QueuedWorkerThread::m_available [protected] |
PMutex PThreadPool< Work_T >::QueuedWorkerThread::m_mutex [protected] |
Queue PThreadPool< Work_T >::QueuedWorkerThread::m_queue [protected] |