CAMEvent class
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The CAMEvent class is a wrapper for manual-reset and auto-reset events.
This class provides a convenient way to manage events, rather than calling functions such as CreateEvent, WaitForSingleObject, and ResetEvent.
Protected Member Variables | Description |
---|---|
m_hEvent | Event handle. |
Public Methods | Description |
CAMEvent | Constructor method. |
~CAMEvent | Destructor method. |
Check | Checks whether the event is set, without blocking. |
Reset | Sets the state of the event to nonsignaled. |
Set | Signals the event. |
Wait | Blocks until the event is signaled, or until a time-out occurs. |
Operators | Description |
operator HANDLE | Retrieves the event handle. |
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|