#include <wxutil.h>

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) | |
| CAMThread & | operator= (const CAMThread &refThread) |
Private Attributes | |
| CAMEvent | m_EventSend |
| CAMEvent | m_EventComplete |
| DWORD | m_dwParam |
| DWORD | m_dwReturnVal |
Definition at line 121 of file wxutil.h.
| CAMThread::CAMThread | ( | const CAMThread & | refThread | ) | [private] |
| CAMThread::CAMThread | ( | ) |
| CAMThread::~CAMThread | ( | ) | [virtual] |
| virtual DWORD CAMThread::ThreadProc | ( | ) | [protected, pure virtual] |
| 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 | ( | ) |
Definition at line 144 of file wxutil.cpp.
References FALSE, InitialThreadProc(), m_AccessLock, m_hThread, NULL, ThreadExists(), and TRUE.
Referenced by CSourceStream::Active(), and CPullPin::StartThread().
| DWORD CAMThread::CallWorker | ( | DWORD | dwParam | ) |
Definition at line 170 of file wxutil.cpp.
References E_FAIL, m_AccessLock, m_dwParam, m_dwReturnVal, m_EventComplete, m_EventSend, CAMEvent::Set(), ThreadExists(), and CAMEvent::Wait().
Referenced by CSourceStream::Exit(), CSourceStream::Init(), CSourceStream::Pause(), CPullPin::PauseThread(), CSourceStream::Run(), CPullPin::StartThread(), CSourceStream::Stop(), and CPullPin::StopThread().
| 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] |
Definition at line 171 of file wxutil.h.
Referenced by CSourceStream::Active(), CPullPin::Active(), CallWorker(), Create(), CSourceStream::Inactive(), CPullPin::PauseThread(), CPullPin::StartThread(), and CPullPin::StopThread().
| 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 | ) |
Definition at line 213 of file wxutil.cpp.
References m_dwReturnVal, m_EventComplete, m_EventSend, CAMEvent::Reset(), and CAMEvent::Set().
Referenced by CSourceStream::DoBufferProcessingLoop(), CSourceStream::ThreadProc(), and CPullPin::ThreadProc().
| 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().
CAMEvent CAMThread::m_EventSend [private] |
Definition at line 128 of file wxutil.h.
Referenced by CallWorker(), CheckRequest(), GetRequest(), and Reply().
CAMEvent CAMThread::m_EventComplete [private] |
DWORD CAMThread::m_dwParam [private] |
Definition at line 131 of file wxutil.h.
Referenced by CallWorker(), CheckRequest(), and GetRequest().
DWORD CAMThread::m_dwReturnVal [private] |
HANDLE CAMThread::m_hThread [protected] |
Definition at line 145 of file wxutil.h.
Referenced by CallWorker(), CPullPin::Connect(), Create(), CPullPin::Disconnect(), CPullPin::PauseThread(), CPullPin::Seek(), CPullPin::StartThread(), and CPullPin::StopThread().
1.5.6