|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.|
Increments the m_lWaitingdata member to indicate that a thread is waiting for a sample.
void SetWaiting( );
No return value.
This member function is called from CBaseAllocator::GetBufferif no samples are available on the free list. After calling this, CBaseAllocator::GetBuffercalls the Microsoft Win32 WaitForSingleObjectfunction 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_lWaitingto zero and calls the Win32 ReleaseSemaphorefunction.