EventSignal Class Reference
|
Space-ng SDK
|
sol3::core::EventSignal Class Reference
#include <sol3/cpp/event_signal.h>
Public Member Functions | |
| EventSignal ()=default | |
| ~EventSignal ()=default | |
| EventSignal (EventSignal const &)=delete | |
| EventSignal & | operator= (EventSignal const &)=delete |
| EventSignal (EventSignal &&)=delete | |
| EventSignal & | operator= (EventSignal &&)=delete |
| bool | wait (std::chrono::milliseconds timeout_ms) const |
| void | notify () |
| Notify all waiting threads of an event. More... | |
Detailed Description
Blocking signal for event notification. Multiple threads can wait() on the same event, and notify() wakes all.
Uses a sequence number to track events, allowing multiple threads to reliably detect the same event without race conditions.
Constructor & Destructor Documentation
◆ EventSignal() [1/3]
|
default |
◆ ~EventSignal()
|
default |
◆ EventSignal() [2/3]
|
delete |
◆ EventSignal() [3/3]
|
delete |
Member Function Documentation
◆ notify()
|
inline |
Notify all waiting threads of an event.
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
delete |
◆ wait()
|
inline |
Wait for an event with timeout.
- Parameters
-
timeout_ms Maximum duration to wait for an event
- Returns
- true if an event occurred, false if timeout
The documentation for this class was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/cpp/event_signal.h
Generated by