WPILibC++ 2024.3.2
|
An atomic signaling event for synchronization. More...
#include <wpi/Synchronization.h>
Public Member Functions | |
Event (bool manualReset=false, bool initialState=false) | |
Constructor. More... | |
~Event () | |
Event (const Event &)=delete | |
Event & | operator= (const Event &)=delete |
Event (Event &&rhs) | |
Event & | operator= (Event &&rhs) |
operator WPI_Handle () const | |
Gets the event handle (e.g. More... | |
WPI_EventHandle | GetHandle () const |
Gets the event handle (e.g. More... | |
void | Set () |
Sets the event to signaled state. More... | |
void | Reset () |
Sets the event to non-signaled state. More... | |
An atomic signaling event for synchronization.
Events have binary state (signaled or not signaled) and may be either automatically reset or manually reset. Automatic-reset events go to non-signaled state when a WaitForObject is woken up by the event; manual-reset events require Reset() to be called to set the event to non-signaled state; if Reset() is not called, any waiter on that event will immediately wake when called.
|
inlineexplicit |
Constructor.
manualReset | true for manual reset, false for automatic reset |
initialState | true to make the event initially in signaled state |
|
inline |
|
delete |
|
inline |
|
inline |
Gets the event handle (e.g.
for WaitForObject).
|
inlineexplicit |
Gets the event handle (e.g.
for WaitForObject).
|
inline |
Sets the event to non-signaled state.
|
inline |
Sets the event to signaled state.