PTLib
Version 2.18.8
|
#include <threadpool.h>
Classes | |
struct | QueuedWork |
Public Member Functions | |
QueuedWorkerThread (PThreadPool< Work_T > &pool, PThread::Priority priority=PThread::NormalPriority, const char *threadName=NULL) | |
~QueuedWorkerThread () | |
void | AddWork (Work_T *work, const string &group) |
void | RemoveWork (Work_T *work) |
unsigned | GetWorkSize () const |
virtual bool | Work () |
void | Shutdown () |
Protected Attributes | |
PSyncQueue< QueuedWork > | m_queue |
atomic< bool > | m_working |
Additional Inherited Members | |
![]() | |
WorkerThread (PThreadPool &pool, Priority priority=NormalPriority, const char *threadName=NULL) | |
|
inline |
|
inline |
|
inlinevirtual |
Implements PThreadPool< Work_T >::WorkerThread.
References PQueuedThreadPool< Work_T >::QueuedWorkerThread::m_queue, and PAssertNULL.
|
inline |
|
inlinevirtual |
Implements PThreadPool< Work_T >::WorkerThread.
Referenced by PQueuedThreadPool< Work_T >::QueuedWorkerThread::Work().
|
inline |
|
inlinevirtual |
References PTime::GetElapsed(), PQueuedThreadPool< Work_T >::QueuedWorkerThread::QueuedWork::m_group, PQueuedThreadPool< Work_T >::QueuedWorkerThread::m_queue, PQueuedThreadPool< Work_T >::QueuedWorkerThread::QueuedWork::m_time, PQueuedThreadPool< Work_T >::QueuedWorkerThread::QueuedWork::m_work, PQueuedThreadPool< Work_T >::m_workerIncreaseLatency, PQueuedThreadPool< Work_T >::QueuedWorkerThread::m_working, PQueuedThreadPool< Work_T >::OnMaxWaitTime(), PThreadPool< Work_T >::RemoveWork(), and PQueuedThreadPool< Work_T >::QueuedWorkerThread::RemoveWork().
|
protected |
|
protected |