CBaseAllocator::NotifySample (Windows CE 5.0)

Send Feedback

Notifies a waiting thread that a sample is available on the free list.

void NotifySample(void);

Parameters

None.

Return Values

None.

Remarks

If m_lWaiting has been incremented (is not zero), this indicates a thread is waiting.

This member function checks for this condition and calls the Win32 ReleaseSemaphore function with the semaphore value m_hSem to activate any waiting thread.

It also sets m_lWaiting back to zero.

This member function is called from CBaseAllocator::ReleaseBuffer when putting a sample back on the free list and from CBaseAllocator::Decommit when decommitting the allocator (so that waiting threads can be denied).

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.