Microsoft Windows CE 3.0  

COutputQueue::ThreadProc

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Implements the thread that sends samples downstream.

DWORD ThreadProc( );

Return Values

Returns zero when DirectShow terminates the thread.

Remarks

This is the main thread procedure for the class, which is called from COutputQueue::InitialThreadProc. It sends a sample or a batch of samples to the connected input pin (depending on the m_bBatchExact, m_nBatched, and m_lBatchSizedata members) when conditions are met. Otherwise, it increments the m_lWaitingdata member, while holding the critical section and waits for m_hSemto be set (not holding the critical section) to continue.