#include <msgthrd.h>
Public Member Functions | |
| CMsgThread () | |
| ~CMsgThread () | |
| virtual void | GetThreadMsg (CMsg *msg) |
| virtual void | OnThreadInit () |
| BOOL | CreateThread () |
| BOOL | WaitForThreadExit (LPDWORD lpdwExitCode) |
| DWORD | ResumeThread () |
| DWORD | SuspendThread () |
| int | GetThreadPriority () |
| BOOL | SetThreadPriority (int nPriority) |
| HANDLE | GetThreadHandle () |
| DWORD | GetThreadId () |
| void | PutThreadMsg (UINT uMsg, DWORD dwMsgFlags, LPVOID lpMsgParam, CAMEvent *pEvent=NULL) |
| virtual LRESULT | ThreadMessageProc (UINT uMsg, DWORD dwFlags, LPVOID lpParam, CAMEvent *pEvent)=0 |
Protected Attributes | |
| CGenericList< CMsg > | m_ThreadQueue |
| CCritSec | m_Lock |
| HANDLE | m_hSem |
| LONG | m_lWaiting |
Static Private Member Functions | |
| static DWORD WINAPI | DefaultThreadProc (LPVOID lpParam) |
Private Attributes | |
| DWORD | m_ThreadId |
| HANDLE | m_hThread |
Definition at line 20 of file msgthrd.h.
| CMsgThread::~CMsgThread | ( | ) |
Definition at line 267 of file wxutil.cpp.
References EXECUTE_ASSERT, CGenericList< OBJECT >::GetHeadPosition(), CGenericList< OBJECT >::GetNext(), m_hSem, m_hThread, m_ThreadQueue, NULL, pos(), and CBaseList::RemoveAll().
| DWORD WINAPI CMsgThread::DefaultThreadProc | ( | LPVOID | lpParam | ) | [static, private] |
Definition at line 301 of file wxutil.cpp.
References CMsg::dwFlags, GetThreadMsg(), CMsg::lpParam, NULL, OnThreadInit(), CMsg::pEvent, ThreadMessageProc(), and CMsg::uMsg.
Referenced by CreateThread().
| void CMsgThread::GetThreadMsg | ( | CMsg * | msg | ) | [virtual] |
Definition at line 328 of file wxutil.cpp.
References m_hSem, m_Lock, m_lWaiting, m_ThreadQueue, NULL, CGenericList< OBJECT >::RemoveHead(), and TRUE.
Referenced by DefaultThreadProc().
| virtual void CMsgThread::OnThreadInit | ( | ) | [inline, virtual] |
| BOOL CMsgThread::CreateThread | ( | ) |
Definition at line 287 of file wxutil.cpp.
References DefaultThreadProc(), FALSE, LPVOID, m_hSem, m_hThread, m_ThreadId, and NULL.
| BOOL CMsgThread::WaitForThreadExit | ( | LPDWORD | lpdwExitCode | ) | [inline] |
| BOOL CMsgThread::SetThreadPriority | ( | int | nPriority | ) | [inline] |
| virtual LRESULT CMsgThread::ThreadMessageProc | ( | UINT | uMsg, | |
| DWORD | dwFlags, | |||
| LPVOID | lpParam, | |||
| CAMEvent * | pEvent | |||
| ) | [pure virtual] |
Referenced by DefaultThreadProc().
DWORD CMsgThread::m_ThreadId [private] |
HANDLE CMsgThread::m_hThread [private] |
CGenericList<CMsg> CMsgThread::m_ThreadQueue [protected] |
CCritSec CMsgThread::m_Lock [protected] |
HANDLE CMsgThread::m_hSem [protected] |
Definition at line 32 of file msgthrd.h.
Referenced by CreateThread(), GetThreadMsg(), and ~CMsgThread().
LONG CMsgThread::m_lWaiting [protected] |
1.5.6