CAMThread Class Reference

#include <wxutil.h>

Inheritance diagram for CAMThread:

CPullPin CSourceStream

List of all members.

Public Member Functions

 CAMThread ()
virtual ~CAMThread ()
BOOL Create ()
DWORD CallWorker (DWORD)
void Close ()
BOOL ThreadExists (void) const
DWORD GetRequest ()
BOOL CheckRequest (DWORD *pParam)
void Reply (DWORD)
HANDLE GetRequestHandle () const
DWORD GetRequestParam () const

Static Public Member Functions

static DWORD WINAPI InitialThreadProc (LPVOID pv)
static HRESULT CoInitializeHelper ()

Public Attributes

CCritSec m_AccessLock
CCritSec m_WorkerLock

Protected Member Functions

virtual DWORD ThreadProc ()=0

Protected Attributes

HANDLE m_hThread

Private Member Functions

 CAMThread (const CAMThread &refThread)
CAMThreadoperator= (const CAMThread &refThread)

Private Attributes

CAMEvent m_EventSend
CAMEvent m_EventComplete
DWORD m_dwParam
DWORD m_dwReturnVal


Detailed Description

Definition at line 121 of file wxutil.h.


Constructor & Destructor Documentation

CAMThread::CAMThread ( const CAMThread refThread  )  [private]

CAMThread::CAMThread (  ) 

Definition at line 114 of file wxutil.cpp.

References m_hThread, and NULL.

CAMThread::~CAMThread (  )  [virtual]

Definition at line 120 of file wxutil.cpp.

References Close().


Member Function Documentation

CAMThread& CAMThread::operator= ( const CAMThread refThread  )  [private]

virtual DWORD CAMThread::ThreadProc (  )  [protected, pure virtual]

Implemented in CPullPin, and CSourceStream.

Referenced by InitialThreadProc().

DWORD WINAPI CAMThread::InitialThreadProc ( LPVOID  pv  )  [static]

Definition at line 125 of file wxutil.cpp.

References CoInitializeHelper(), DbgLog, FAILED, hr, HRESULT, LOG_ERROR, and ThreadProc().

Referenced by Create().

BOOL CAMThread::Create (  ) 

DWORD CAMThread::CallWorker ( DWORD  dwParam  ) 

void CAMThread::Close (  )  [inline]

Definition at line 161 of file wxutil.h.

References InterlockedExchangePointer.

Referenced by CSourceStream::Inactive(), CPullPin::StopThread(), and ~CAMThread().

BOOL CAMThread::ThreadExists ( void   )  const [inline]

DWORD CAMThread::GetRequest ( void   ) 

Reimplemented in CSourceStream.

Definition at line 193 of file wxutil.cpp.

References m_dwParam, m_EventSend, and CAMEvent::Wait().

Referenced by CSourceStream::GetRequest(), and CPullPin::ThreadProc().

BOOL CAMThread::CheckRequest ( DWORD *  pParam  ) 

Definition at line 200 of file wxutil.cpp.

References CAMEvent::Check(), FALSE, m_dwParam, m_EventSend, and TRUE.

Referenced by CSourceStream::CheckRequest(), and CPullPin::Process().

void CAMThread::Reply ( DWORD  dw  ) 

HANDLE CAMThread::GetRequestHandle (  )  const [inline]

Definition at line 191 of file wxutil.h.

DWORD CAMThread::GetRequestParam (  )  const [inline]

Definition at line 194 of file wxutil.h.

HRESULT CAMThread::CoInitializeHelper (  )  [static]

Definition at line 231 of file wxutil.cpp.

References COINIT_DISABLE_OLE1DDE, DbgBreak, E_FAIL, hr, HRESULT, and LPVOID.

Referenced by InitialThreadProc(), and COutputQueue::InitialThreadProc().


Member Data Documentation

Definition at line 128 of file wxutil.h.

Referenced by CallWorker(), CheckRequest(), GetRequest(), and Reply().

Definition at line 129 of file wxutil.h.

Referenced by CallWorker(), and Reply().

DWORD CAMThread::m_dwParam [private]

Definition at line 131 of file wxutil.h.

Referenced by CallWorker(), CheckRequest(), and GetRequest().

DWORD CAMThread::m_dwReturnVal [private]

Definition at line 132 of file wxutil.h.

Referenced by CallWorker(), and Reply().

HANDLE CAMThread::m_hThread [protected]

Definition at line 135 of file wxutil.h.

Referenced by CAMThread(), and Create().

Definition at line 146 of file wxutil.h.


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

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