23 #ifndef ETCPAL_CPP_SIGNAL_H_
24 #define ETCPAL_CPP_SIGNAL_H_
27 #include "etcpal/signal.h"
100 bool TryWait(
int timeout_ms = 0);
A wrapper class for the EtcPal signal type.
Definition: signal.h:89
~Signal()
Destroy the signal.
Definition: signal.h:117
Signal()
Create a new signal.
Definition: signal.h:111
etcpal_signal_t & get()
Get a reference to the underlying etcpal_signal_t type.
Definition: signal.h:162
void Notify()
Notify those waiting on the signal.
Definition: signal.h:146
bool TryWait(int timeout_ms=0)
Wait for the signal until either it is received or a timeout expires.
Definition: signal.h:138
void NotifyFromIsr()
Notify those waiting on the signal from an interrupt context.
Definition: signal.h:156
bool Wait()
Wait for the signal.
Definition: signal.h:124
Common definitions used by EtcPal C++ wrappers.
bool etcpal_signal_wait(etcpal_signal_t *id)
Wait for a signal.
bool etcpal_signal_create(etcpal_signal_t *id)
Create a new signal.
void etcpal_signal_destroy(etcpal_signal_t *id)
Destroy a signal object.
bool etcpal_signal_timed_wait(etcpal_signal_t *id, int timeout_ms)
Wait for a signal, giving up after a timeout.
PLATFORM_DEFINED etcpal_signal_t
The signal identifier.
Definition: signal.dox:86
void etcpal_signal_post_from_isr(etcpal_signal_t *id)
Post a signal from an interrupt context.
void etcpal_signal_post(etcpal_signal_t *id)
Post a signal.