CBaseRenderer::WaitForReceiveToComplete

 
Microsoft DirectShow 9.0

CBaseRenderer::WaitForReceiveToComplete

The WaitForReceiveToComplete method waits for the CBaseRenderer::Receive method to complete.

Syntax

  void WaitForReceiveToComplete(void);

Remarks

The CBaseRenderer::Stop and CBaseRenderer::BeginFlush methods call this method to synchronize the state change with the Receive method.

Specifically, this method dispatches messages while it waits for the CBaseRenderer::m_bInReceive flag to become FALSE. The flag becomes TRUE in the CBaseRenderer::PrepareReceive method and switches back to FALSE after the Receive method calls the CBaseRenderer::PrepareRender method. The derived class can use PrepareRender to set the palette. Waiting for PrepareRender to complete ensures that palette-change messages are dispatched before the state change occurs. This avoids a potential deadlock.

Requirements

**  Header:** Declared in Renbase.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also