CMsgThread Class Reference

#include <msgthrd.h>

List of all members.

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< CMsgm_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


Detailed Description

Definition at line 20 of file msgthrd.h.


Constructor & Destructor Documentation

CMsgThread::CMsgThread (  )  [inline]

Definition at line 36 of file msgthrd.h.

CMsgThread::~CMsgThread (  ) 


Member Function Documentation

DWORD WINAPI CMsgThread::DefaultThreadProc ( LPVOID  lpParam  )  [static, private]

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]

Definition at line 52 of file msgthrd.h.

Referenced by DefaultThreadProc().

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]

Definition at line 57 of file msgthrd.h.

References FALSE, and NULL.

DWORD CMsgThread::ResumeThread (  )  [inline]

Definition at line 65 of file msgthrd.h.

DWORD CMsgThread::SuspendThread (  )  [inline]

Definition at line 69 of file msgthrd.h.

int CMsgThread::GetThreadPriority (  )  [inline]

Definition at line 73 of file msgthrd.h.

BOOL CMsgThread::SetThreadPriority ( int  nPriority  )  [inline]

Definition at line 77 of file msgthrd.h.

HANDLE CMsgThread::GetThreadHandle (  )  [inline]

Definition at line 81 of file msgthrd.h.

DWORD CMsgThread::GetThreadId (  )  [inline]

Definition at line 85 of file msgthrd.h.

void CMsgThread::PutThreadMsg ( UINT  uMsg,
DWORD  dwMsgFlags,
LPVOID  lpMsgParam,
CAMEvent pEvent = NULL 
) [inline]

Definition at line 89 of file msgthrd.h.

virtual LRESULT CMsgThread::ThreadMessageProc ( UINT  uMsg,
DWORD  dwFlags,
LPVOID  lpParam,
CAMEvent pEvent 
) [pure virtual]

Referenced by DefaultThreadProc().


Member Data Documentation

DWORD CMsgThread::m_ThreadId [private]

Definition at line 23 of file msgthrd.h.

Referenced by CreateThread().

HANDLE CMsgThread::m_hThread [private]

Definition at line 24 of file msgthrd.h.

Referenced by CreateThread(), and ~CMsgThread().

Definition at line 30 of file msgthrd.h.

Referenced by GetThreadMsg(), and ~CMsgThread().

Definition at line 31 of file msgthrd.h.

Referenced by GetThreadMsg().

HANDLE CMsgThread::m_hSem [protected]

Definition at line 32 of file msgthrd.h.

Referenced by CreateThread(), GetThreadMsg(), and ~CMsgThread().

Definition at line 33 of file msgthrd.h.

Referenced by GetThreadMsg().


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

Generated on Sun May 25 00:20:49 2008 by  doxygen 1.5.6