|
RADPx-OS Kernel (Radical Posix OS)
Crimson 0.1.4
POSIX-inspired kernel API with embedded and desktop VM targets
|
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 | |
| Mutex & | operator= (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. | |
RAII wrapper for rad_mutex_t.