WPILibC++ 2024.3.2
|
RAII wrapper for signaling handles. More...
#include <wpi/Synchronization.h>
Public Member Functions | |
SignalObject (T handle=0, bool manualReset=false, bool initialState=false) | |
Constructor. More... | |
~SignalObject () | |
SignalObject (const SignalObject &)=delete | |
SignalObject & | operator= (const SignalObject &)=delete |
SignalObject (SignalObject &&rhs) | |
SignalObject & | operator= (SignalObject &&rhs) |
operator T () const | |
Gets the handle. More... | |
T | GetHandle () const |
Gets the handle (e.g. More... | |
void | Set () |
Sets the handle to signaled state. More... | |
void | Reset () |
Sets the handle to non-signaled state. More... | |
RAII wrapper for signaling handles.
Sets up signaling for an arbitrary handle. This enables any handle to operate like an event handle.
|
inlineexplicit |
Constructor.
handle | handle |
manualReset | true for manual reset, false for automatic reset |
initialState | true to make the handle initially in signaled state |
|
inline |
|
delete |
|
inline |
|
inline |
Gets the handle (e.g.
for WaitForObject).
|
inline |
Gets the handle.
|
delete |
|
inline |
|
inline |
Sets the handle to non-signaled state.
|
inline |
Sets the handle to signaled state.