#include <threadpool.h>

Definition at line 103 of file threadpool.h.
Public Member Functions | |
| ThreadPool (const QString &sName) | |
| virtual | ~ThreadPool () |
| WorkerThread * | GetWorkerThread () |
Protected Member Functions | |
| void | InitializeThreads () |
| WorkerThread * | AddWorkerThread (bool bMakeAvailable, long nTimeout) |
| void | ThreadAvailable (WorkerThread *pThread) |
| void | ThreadTerminating (WorkerThread *pThread) |
| virtual WorkerThread * | CreateWorkerThread (ThreadPool *, const QString &sName)=0 |
Protected Attributes | |
| QString | m_sName |
| QMutex | m_mList |
| QWaitCondition | m_threadAvail |
| WorkerThreadList | m_lstThreads |
| WorkerThreadList | m_lstAvailableThreads |
| int | m_nInitialThreadCount |
| int | m_nMaxThreadCount |
| long | m_nIdleTimeout |
Friends | |
| class | WorkerThread |
| ThreadPool::ThreadPool | ( | const QString & | sName | ) |
Definition at line 246 of file threadpool.cpp.
| ThreadPool::~ThreadPool | ( | ) | [virtual] |
Definition at line 265 of file threadpool.cpp.
| void ThreadPool::InitializeThreads | ( | ) | [protected] |
| WorkerThread * ThreadPool::AddWorkerThread | ( | bool | bMakeAvailable, | |
| long | nTimeout | |||
| ) | [protected] |
Definition at line 359 of file threadpool.cpp.
Referenced by GetWorkerThread(), and InitializeThreads().
| void ThreadPool::ThreadAvailable | ( | WorkerThread * | pThread | ) | [protected] |
| void ThreadPool::ThreadTerminating | ( | WorkerThread * | pThread | ) | [protected] |
| virtual WorkerThread* ThreadPool::CreateWorkerThread | ( | ThreadPool * | , | |
| const QString & | sName | |||
| ) | [protected, pure virtual] |
| WorkerThread * ThreadPool::GetWorkerThread | ( | ) |
friend class WorkerThread [friend] |
Definition at line 105 of file threadpool.h.
QString ThreadPool::m_sName [protected] |
QMutex ThreadPool::m_mList [protected] |
Definition at line 111 of file threadpool.h.
Referenced by AddWorkerThread(), GetWorkerThread(), ThreadAvailable(), and ThreadTerminating().
QWaitCondition ThreadPool::m_threadAvail [protected] |
Definition at line 113 of file threadpool.h.
Referenced by AddWorkerThread(), GetWorkerThread(), and ThreadAvailable().
WorkerThreadList ThreadPool::m_lstThreads [protected] |
Definition at line 115 of file threadpool.h.
Referenced by AddWorkerThread(), GetWorkerThread(), ThreadPool(), and ~ThreadPool().
WorkerThreadList ThreadPool::m_lstAvailableThreads [protected] |
Definition at line 116 of file threadpool.h.
Referenced by AddWorkerThread(), GetWorkerThread(), ThreadAvailable(), ThreadPool(), and ThreadTerminating().
int ThreadPool::m_nInitialThreadCount [protected] |
int ThreadPool::m_nMaxThreadCount [protected] |
long ThreadPool::m_nIdleTimeout [protected] |
1.5.5