Compartilhar via


CBaseAllocator::NotifySample (Compact 2013)

3/26/2014

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

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBaseAllocator Class