Windows C++ Library
|
#include <ThreadPoolThread.hpp>
Public Types | |
enum | ThreadStatus { STOPPED, IDLE, RUNNING } |
Public Member Functions | |
ThreadPoolThread (CThreadPool &oPool, size_t nPoolID) | |
virtual | ~ThreadPoolThread () |
ThreadStatus | Status () const |
void | Start () |
void | RunJob (ThreadJobPtr &pJob) |
void | Stop () |
Protected Types | |
enum | ThreadMsg { START_THREAD = WM_USER+1, RUN_JOB = WM_USER+2, STOP_THREAD = WM_USER+3 } |
Protected Member Functions | |
virtual void | OnThreadMsg (UINT nMsg, WPARAM wParam, LPARAM lParam) |
void | OnStartThread () |
void | OnRunJob () |
void | OnStopThread () |
Static Protected Member Functions | |
static DWORD WINAPI | ThreadFunction (LPVOID lpParam) |
Protected Attributes | |
CThreadPool & | m_oPool |
size_t | m_nPoolID |
ThreadStatus | m_eStatus |
CEvent | m_oSyncEvent |
ThreadJobPtr | m_pJob |
enum ThreadPoolThread::ThreadMsg [protected] |
ThreadPoolThread::ThreadPoolThread | ( | CThreadPool & | oPool, |
size_t | nPoolID | ||
) |
ThreadPoolThread::~ThreadPoolThread | ( | ) | [virtual] |
ThreadPoolThread::ThreadStatus ThreadPoolThread::Status | ( | ) | const [inline] |
void ThreadPoolThread::Start | ( | ) |
void ThreadPoolThread::RunJob | ( | ThreadJobPtr & | pJob | ) |
void ThreadPoolThread::Stop | ( | ) |
void ThreadPoolThread::OnThreadMsg | ( | UINT | nMsg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, virtual] |
Reimplemented from CMsgThread.
void ThreadPoolThread::OnStartThread | ( | ) | [protected] |
void ThreadPoolThread::OnRunJob | ( | ) | [protected] |
void ThreadPoolThread::OnStopThread | ( | ) | [protected] |
DWORD WINAPI ThreadPoolThread::ThreadFunction | ( | LPVOID | lpParam | ) | [static, protected] |
CThreadPool& ThreadPoolThread::m_oPool [protected] |
size_t ThreadPoolThread::m_nPoolID [protected] |
ThreadStatus ThreadPoolThread::m_eStatus [protected] |
CEvent ThreadPoolThread::m_oSyncEvent [protected] |
ThreadJobPtr ThreadPoolThread::m_pJob [protected] |