![]() |
WPILibC++ 2025.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. | |
| ~SignalObject () | |
| SignalObject (const SignalObject &)=delete | |
| SignalObject & | operator= (const SignalObject &)=delete |
| SignalObject (SignalObject &&rhs) | |
| SignalObject & | operator= (SignalObject &&rhs) |
| operator T () const | |
| Gets the handle. | |
| T | GetHandle () const |
| Gets the handle (e.g. | |
| void | Set () |
| Sets the handle to signaled state. | |
| void | Reset () |
| Sets the handle to non-signaled state. | |
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.