#include <cthreadpool.h>
Public Member Functions | |
Thread (CThreadPool *p) | |
Protected Member Functions | |
virtual void | threadFunction () |
virtual void | onThreadExit () |
Private Attributes | |
CThreadPool * | m_pool |
Definition at line 38 of file cthreadpool.h.
container::CThreadPool::CThreadPool::Thread::Thread | ( | CThreadPool * | p | ) | [inline] |
Definition at line 45 of file cthreadpool.h.
void container::CThreadPool::CThreadPool::Thread::onThreadExit | ( | ) | [protected, virtual] |
Definition at line 151 of file cthreadpool.cpp.
References container::CThreadPool::CThreadPool::Thread::m_pool, and container::CThreadPool::threadDone().
void container::CThreadPool::CThreadPool::Thread::threadFunction | ( | ) | [protected, virtual] |
Runs tasks from queue. If queue returns an empty task, exits
Definition at line 86 of file cthreadpool.cpp.
References container::CThreadPool::getTask(), container::CThreadPool::CThreadPool::Thread::m_pool, container::CThreadPool::m_running, and container::CThreadPool::CThreadPool::Task::run().
CThreadPool* container::CThreadPool::CThreadPool::Thread::m_pool [private] |
Definition at line 40 of file cthreadpool.h.
Referenced by container::CThreadPool::CThreadPool::Thread::onThreadExit(), and container::CThreadPool::CThreadPool::Thread::threadFunction().