RADPx-OS Kernel (Radical Posix OS)  Crimson 0.1.4
POSIX-inspired kernel API with embedded and desktop VM targets
rad::Event Class Reference

RAII wrapper for rad_event_t. More...

#include <rad_cpp.h>

Public Member Functions

 Event (bool signaled=false)
 Create a kernel event with an optional initial signal state.
 
 ~Event ()
 Destroy the event when it was created successfully.
 
 Event (const Event &)=delete
 
Eventoperator= (const Event &)=delete
 
rad_status_t status () const
 Return construction status.
 
rad_status_t wait (uint32_t timeout_ms)
 Wait for the event or timeout.
 
rad_status_t signal ()
 Signal the event.
 
rad_status_t reset ()
 Reset the event to unsignaled.
 

Detailed Description

RAII wrapper for rad_event_t.


The documentation for this class was generated from the following file: