CBaseAllocator::SetWaiting (Windows Embedded CE 6.0)

1/6/2010

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

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CBaseAllocator Class