|
Gin
|
A realtime-safe event synchronization primitive for cross-thread signaling. More...
#include <gin_realtimeevent.h>
Public Member Functions | |
| RealtimeEvent () | |
| ~RealtimeEvent () | |
| void | signal () |
| Signals the event, waking up any thread blocked in wait(). | |
| void | wait () |
| Blocks the calling thread until signal() is called. | |
A realtime-safe event synchronization primitive for cross-thread signaling.
RealtimeEvent provides a lightweight signaling mechanism where signal() is guaranteed to be realtime-safe (no allocations, no blocking). This is suitable for waking up non-realtime threads from audio callbacks or other time-critical contexts.
Key Features:
Usage:
Platform Notes:
| RealtimeEvent::RealtimeEvent | ( | ) |
| RealtimeEvent::~RealtimeEvent | ( | ) |
| void RealtimeEvent::signal | ( | ) |
| void RealtimeEvent::wait | ( | ) |
Blocks the calling thread until signal() is called.
This method is NOT realtime-safe and should only be called from non-realtime threads.