lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Implements an event. More...
#include <event.h>
Inherits noncopyable.
Public Member Functions | |
event (bool signaled=false) | |
Constructs a critical section. Throws a runtime_error on failure. | |
~event () | |
Destructor. | |
LEAN_INLINE void | wait () |
Waits for the next event notification. | |
LEAN_INLINE void | set () |
Sets the event state to signaled. | |
LEAN_INLINE void | reset () |
Resets the event state to non-signaled. | |
LEAN_INLINE void | signaled (bool signaled) |
Sets the event state. | |
LEAN_INLINE HANDLE | native_handle () const |
Gets the native handle. |
Implements an event.