Partager via


CBaseAllocator::SetWaiting (Compact 2013)

3/26/2014

Increments the m_lWaiting data member to indicate that a thread is waiting for a sample.

Syntax

void SetWaiting( );

Parameters

None.

Return Value

None.

Remarks

This member function is called from CBaseAllocator::GetBuffer if no samples are available on the free list.

After calling this, CBaseAllocator::GetBuffer calls the Win32 WaitForSingleObject function to wait for the list to signal that a sample is available.

The list signals by calling CBaseAllocator::ReleaseBuffer, which in turn calls CBaseAllocator::NotifySample, which sets m_lWaiting to zero and calls the Win32 ReleaseSemaphore function.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseAllocator Class