MPoolThread Class Reference

Inheritance diagram for MPoolThread:
MThread

List of all members.

Public Member Functions

 MPoolThread (MThreadPool &pool, int timeout)
void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
bool SetRunnable (QRunnable *runnable, QString runnableName, bool reserved)
void Shutdown (void)

Public Attributes

QMutex m_lock
QWaitCondition m_wait
MThreadPoolm_pool
int m_expiry_timeout
bool m_do_run
QString m_runnable_name
bool m_reserved

Static Public Attributes

static QMutex s_lock
static uint s_thread_num = 0

Detailed Description

Definition at line 49 of file mthreadpool.cpp.


Constructor & Destructor Documentation

MPoolThread::MPoolThread ( MThreadPool pool,
int  timeout 
) [inline]

Definition at line 52 of file mthreadpool.cpp.


Member Function Documentation

void MPoolThread::run ( void   )  [inline, virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 61 of file mthreadpool.cpp.

bool MPoolThread::SetRunnable ( QRunnable *  runnable,
QString  runnableName,
bool  reserved 
) [inline]

Definition at line 121 of file mthreadpool.cpp.

Referenced by MThreadPool::NotifyAvailable(), and MThreadPool::TryStartInternal().

void MPoolThread::Shutdown ( void   )  [inline]

Definition at line 136 of file mthreadpool.cpp.

Referenced by MThreadPool::NotifyAvailable(), and MThreadPool::TryStartInternal().


Member Data Documentation

Definition at line 143 of file mthreadpool.cpp.

Referenced by run(), SetRunnable(), and Shutdown().

QWaitCondition MPoolThread::m_wait

Definition at line 144 of file mthreadpool.cpp.

Referenced by run(), SetRunnable(), and Shutdown().

Definition at line 145 of file mthreadpool.cpp.

Referenced by run().

Definition at line 146 of file mthreadpool.cpp.

Referenced by run().

Definition at line 147 of file mthreadpool.cpp.

Referenced by run(), SetRunnable(), and Shutdown().

Definition at line 148 of file mthreadpool.cpp.

Referenced by run(), and SetRunnable().

Definition at line 149 of file mthreadpool.cpp.

Referenced by run(), and SetRunnable().

QMutex MPoolThread::s_lock [static]

Definition at line 151 of file mthreadpool.cpp.

Referenced by MPoolThread().

Definition at line 152 of file mthreadpool.cpp.

Referenced by MPoolThread().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:13 2012 for MythTV by  doxygen 1.6.3