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

RAII wrapper for rad_mutex_t. More...

#include <rad_cpp.h>

Public Member Functions

 Mutex ()
 Create a kernel mutex.
 
 ~Mutex ()
 Destroy the kernel mutex when it was created successfully.
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
rad_status_t status () const
 Return construction status.
 
rad_status_t lock ()
 Lock the mutex.
 
rad_status_t unlock ()
 Unlock the mutex.
 
rad_mutex_t native () const
 Return the raw mutex handle.
 

Detailed Description

RAII wrapper for rad_mutex_t.


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