#include <threadpool.h>

Definition at line 57 of file threadpool.h.
Public Member Functions | |
| WorkerThread (ThreadPool *pThreadPool, const QString &sName) | |
| virtual | ~WorkerThread () |
| bool | WaitForInitialized (unsigned long msecs) |
| void | SignalWork () |
| void | SetTimeout (long nIdleTimeout) |
Protected Member Functions | |
| virtual void | run () |
| virtual void | ProcessWork ()=0 |
Protected Attributes | |
| QMutex | m_mutex |
| CEvent | m_WorkAvailable |
| CEvent | m_Initialized |
| bool | m_bInitialized |
| ThreadPool * | m_pThreadPool |
| volatile bool | m_bTermRequested |
| QString | m_sName |
| long | m_nIdleTimeoutMS |
| bool | m_bAllowTimeout |
| WorkerThread::WorkerThread | ( | ThreadPool * | pThreadPool, | |
| const QString & | sName | |||
| ) |
Definition at line 115 of file threadpool.cpp.
| WorkerThread::~WorkerThread | ( | ) | [virtual] |
Definition at line 130 of file threadpool.cpp.
| void WorkerThread::run | ( | void | ) | [protected, virtual] |
Definition at line 185 of file threadpool.cpp.
| virtual void WorkerThread::ProcessWork | ( | ) | [protected, pure virtual] |
| bool WorkerThread::WaitForInitialized | ( | unsigned long | msecs | ) |
| void WorkerThread::SignalWork | ( | ) |
| void WorkerThread::SetTimeout | ( | long | nIdleTimeout | ) |
QMutex WorkerThread::m_mutex [protected] |
CEvent WorkerThread::m_WorkAvailable [protected] |
CEvent WorkerThread::m_Initialized [protected] |
bool WorkerThread::m_bInitialized [protected] |
Definition at line 65 of file threadpool.h.
Referenced by run(), WaitForInitialized(), and WorkerThread().
ThreadPool* WorkerThread::m_pThreadPool [protected] |
volatile bool WorkerThread::m_bTermRequested [protected] |
Definition at line 69 of file threadpool.h.
Referenced by HttpWorkerThread::ProcessWork(), run(), WorkerThread(), and ~WorkerThread().
QString WorkerThread::m_sName [protected] |
long WorkerThread::m_nIdleTimeoutMS [protected] |
bool WorkerThread::m_bAllowTimeout [protected] |
1.5.5