CTRE Phoenix 6 C++ 24.3.0
|
Manual Event object, useful for signaling other threads about an event. More...
#include <ctre/phoenix/threading/ManualEvent.hpp>
Public Member Functions | |
ManualEvent (bool initialSignal=false) | |
bool | WaitForSignal (int timeoutMs) const |
Wait for event to be signaled, or for timeout. More... | |
void | Signal () |
Signal the event. More... | |
void | Clear () |
Clear the event. More... | |
void | Reset () |
Reset the event signal without signaling other threads. More... | |
Manual Event object, useful for signaling other threads about an event.
ctre::phoenix::threading::ManualEvent::ManualEvent | ( | bool | initialSignal = false | ) |
initialSignal | object defaults to Signaled or Not Signaled (default is not signaled). |
void ctre::phoenix::threading::ManualEvent::Clear | ( | ) |
Clear the event.
Any threads waiting on WaitForSignal() will time out.
void ctre::phoenix::threading::ManualEvent::Reset | ( | ) |
Reset the event signal without signaling other threads.
void ctre::phoenix::threading::ManualEvent::Signal | ( | ) |
Signal the event.
Any threads waiting on WaitForSignal() will return true.
bool ctre::phoenix::threading::ManualEvent::WaitForSignal | ( | int | timeoutMs | ) | const |
Wait for event to be signaled, or for timeout.