Windows C++ Library
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
ThreadPoolThread Class Reference

#include <ThreadPoolThread.hpp>

Inheritance diagram for ThreadPoolThread:
CMsgThread CThread

List of all members.

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

CThreadPoolm_oPool
size_t m_nPoolID
ThreadStatus m_eStatus
CEvent m_oSyncEvent
ThreadJobPtr m_pJob

Member Enumeration Documentation

Enumerator:
STOPPED 
IDLE 
RUNNING 
enum ThreadPoolThread::ThreadMsg [protected]
Enumerator:
START_THREAD 
RUN_JOB 
STOP_THREAD 

Constructor & Destructor Documentation

ThreadPoolThread::ThreadPoolThread ( CThreadPool oPool,
size_t  nPoolID 
)

Member Function Documentation

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]

Member Data Documentation

size_t ThreadPoolThread::m_nPoolID [protected]

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