WorkerThread Class Reference

#include <threadpool.h>

Inheritance diagram for WorkerThread:

HttpWorkerThread

List of all members.


Detailed Description

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
ThreadPoolm_pThreadPool
volatile bool m_bTermRequested
QString m_sName
long m_nIdleTimeoutMS
bool m_bAllowTimeout

Constructor & Destructor Documentation

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.


Member Function Documentation

void WorkerThread::run ( void   )  [protected, virtual]

Definition at line 185 of file threadpool.cpp.

virtual void WorkerThread::ProcessWork (  )  [protected, pure virtual]

Implemented in HttpWorkerThread.

Referenced by run().

bool WorkerThread::WaitForInitialized ( unsigned long  msecs  ) 

Definition at line 143 of file threadpool.cpp.

Referenced by ThreadPool::AddWorkerThread().

void WorkerThread::SignalWork (  ) 

Definition at line 159 of file threadpool.cpp.

Referenced by HttpWorkerThread::StartWork().

void WorkerThread::SetTimeout ( long  nIdleTimeout  ) 

Definition at line 168 of file threadpool.cpp.

Referenced by ThreadPool::AddWorkerThread().


Member Data Documentation

QMutex WorkerThread::m_mutex [protected]

Definition at line 61 of file threadpool.h.

Referenced by run(), and WaitForInitialized().

Definition at line 62 of file threadpool.h.

Referenced by run(), SignalWork(), and ~WorkerThread().

Definition at line 64 of file threadpool.h.

Referenced by run(), and WaitForInitialized().

Definition at line 65 of file threadpool.h.

Referenced by run(), WaitForInitialized(), and WorkerThread().

Definition at line 67 of file threadpool.h.

Referenced by run(), and WorkerThread().

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]

Definition at line 70 of file threadpool.h.

Referenced by run(), and WorkerThread().

Definition at line 72 of file threadpool.h.

Referenced by run(), SetTimeout(), and WorkerThread().

Definition at line 73 of file threadpool.h.

Referenced by run(), SetTimeout(), and WorkerThread().


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

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5