Partager via


CBaseAllocator::SetWaiting (Windows CE 5.0)

Send Feedback

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

void SetWaiting( );

Parameters

None.

Return Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.