Partager via


CBaseAllocator::NotifySample

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

void NotifySample(void);

Parameters

None.

Return Value

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

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 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