CCmdQueue Class Reference

#include <ctlutil.h>

List of all members.

Public Member Functions

 CCmdQueue ()
virtual ~CCmdQueue ()
virtual HRESULT New (CDeferredCommand **ppCmd, LPUNKNOWN pUnk, REFTIME time, GUID *iid, long dispidMethod, short wFlags, long cArgs, VARIANT *pDispParams, VARIANT *pvarResult, short *puArgErr, BOOL bStream)
virtual HRESULT Insert (CDeferredCommand *pCmd)
virtual HRESULT Remove (CDeferredCommand *pCmd)
virtual HRESULT SetSyncSource (IReferenceClock *)
virtual HRESULT Run (REFERENCE_TIME tStreamTimeOffset)
virtual HRESULT EndRun ()
virtual HRESULT GetDueCommand (CDeferredCommand **ppCmd, long msTimeout)
HANDLE GetDueHandle ()
virtual HRESULT GetCommandDueFor (REFERENCE_TIME tStream, CDeferredCommand **ppCmd)
BOOL CheckTime (CRefTime time, BOOL bStream)

Protected Member Functions

void SetTimeAdvise (void)

Protected Attributes

CCritSec m_Lock
CGenericList< CDeferredCommandm_listPresentation
CGenericList< CDeferredCommandm_listStream
CAMEvent m_evDue
DWORD_PTR m_dwAdvise
CRefTime m_tCurrentAdvise
IReferenceClock * m_pClock
BOOL m_bRunning
CRefTime m_StreamTimeOffset


Detailed Description

Definition at line 668 of file ctlutil.h.


Constructor & Destructor Documentation

CCmdQueue::CCmdQueue (  ) 

Definition at line 1882 of file ctlutil.cpp.

CCmdQueue::~CCmdQueue (  )  [virtual]


Member Function Documentation

HRESULT CCmdQueue::New ( CDeferredCommand **  ppCmd,
LPUNKNOWN  pUnk,
REFTIME  time,
GUID *  iid,
long  dispidMethod,
short  wFlags,
long  cArgs,
VARIANT pDispParams,
VARIANT pvarResult,
short *  puArgErr,
BOOL  bStream 
) [virtual]

Definition at line 1924 of file ctlutil.cpp.

References E_OUTOFMEMORY, hr, HRESULT, m_Lock, NULL, and S_OK.

HRESULT CCmdQueue::Insert ( CDeferredCommand pCmd  )  [virtual]

HRESULT CCmdQueue::Remove ( CDeferredCommand pCmd  )  [virtual]

HRESULT CCmdQueue::SetSyncSource ( IReferenceClock *  pClock  )  [virtual]

Definition at line 2038 of file ctlutil.cpp.

References m_dwAdvise, m_Lock, m_pClock, S_OK, and SetTimeAdvise().

HRESULT CCmdQueue::Run ( REFERENCE_TIME  tStreamTimeOffset  )  [virtual]

Definition at line 2126 of file ctlutil.cpp.

References m_bRunning, m_Lock, m_StreamTimeOffset, S_OK, SetTimeAdvise(), and TRUE.

HRESULT CCmdQueue::EndRun (  )  [virtual]

Definition at line 2139 of file ctlutil.cpp.

References FALSE, m_bRunning, m_Lock, S_OK, and SetTimeAdvise().

HRESULT CCmdQueue::GetDueCommand ( CDeferredCommand **  ppCmd,
long  msTimeout 
) [virtual]

HANDLE CCmdQueue::GetDueHandle (  )  [inline]

Definition at line 753 of file ctlutil.h.

HRESULT CCmdQueue::GetCommandDueFor ( REFERENCE_TIME  tStream,
CDeferredCommand **  ppCmd 
) [virtual]

BOOL CCmdQueue::CheckTime ( CRefTime  time,
BOOL  bStream 
) [inline]

Definition at line 767 of file ctlutil.h.

References FALSE.

Referenced by GetCommandDueFor(), GetDueCommand(), and CDeferredCommand::Postpone().

void CCmdQueue::SetTimeAdvise ( void   )  [protected]


Member Data Documentation

Definition at line 788 of file ctlutil.h.

Referenced by EndRun(), GetCommandDueFor(), GetDueCommand(), Insert(), New(), Remove(), Run(), and SetSyncSource().

Definition at line 796 of file ctlutil.h.

Referenced by GetCommandDueFor(), GetDueCommand(), Insert(), Remove(), SetTimeAdvise(), and ~CCmdQueue().

Definition at line 799 of file ctlutil.h.

Referenced by GetCommandDueFor(), GetDueCommand(), Insert(), Remove(), SetTimeAdvise(), and ~CCmdQueue().

Definition at line 802 of file ctlutil.h.

Referenced by GetDueCommand(), and SetTimeAdvise().

DWORD_PTR CCmdQueue::m_dwAdvise [protected]

Definition at line 808 of file ctlutil.h.

Referenced by SetSyncSource(), SetTimeAdvise(), and ~CCmdQueue().

Definition at line 811 of file ctlutil.h.

Referenced by SetTimeAdvise().

IReferenceClock* CCmdQueue::m_pClock [protected]

Definition at line 814 of file ctlutil.h.

Referenced by SetSyncSource(), SetTimeAdvise(), and ~CCmdQueue().

BOOL CCmdQueue::m_bRunning [protected]

Definition at line 817 of file ctlutil.h.

Referenced by EndRun(), GetCommandDueFor(), GetDueCommand(), Run(), and SetTimeAdvise().

Definition at line 820 of file ctlutil.h.

Referenced by GetCommandDueFor(), GetDueCommand(), Run(), and SetTimeAdvise().


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

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