|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
Notifies a waiting thread that a sample is available on the free list.
No return value.
If m_lWaitinghas been incremented (is not zero), this indicates a thread is waiting. This member function checks for this condition and calls the Microsoft Win32 ReleaseSemaphorefunction with the semaphore value m_hSemto activate any waiting thread. It also sets m_lWaitingback to zero.
This member function is called from CBaseAllocator::ReleaseBufferwhen putting a sample back on the free list and from CBaseAllocator::Decommitwhen decommitting the allocator (so that waiting threads can be denied).