dRonin
adbada4
dRonin firmware
|
Abstracts the concept of a mutex to hide different implementations. More...
Data Structures | |
struct | pios_mutex |
struct | pios_recursive_mutex |
Macros | |
#define | PIOS_MUTEX_TIMEOUT_MAX 0xffffffff |
Functions | |
struct pios_mutex * | PIOS_Mutex_Create (void) |
bool | PIOS_Mutex_Lock (struct pios_mutex *mtx, uint32_t timeout_ms) |
bool | PIOS_Mutex_Unlock (struct pios_mutex *mtx) |
struct pios_recursive_mutex * | PIOS_Recursive_Mutex_Create (void) |
bool | PIOS_Recursive_Mutex_Lock (struct pios_recursive_mutex *mtx, uint32_t timeout_ms) |
bool | PIOS_Recursive_Mutex_Unlock (struct pios_recursive_mutex *mtx) |
Abstracts the concept of a mutex to hide different implementations.
#define PIOS_MUTEX_TIMEOUT_MAX 0xffffffff |
Definition at line 30 of file pios_mutex.h.
struct pios_mutex * PIOS_Mutex_Create | ( | void | ) |
Definition at line 43 of file pios_mutex.c.
bool PIOS_Mutex_Lock | ( | struct pios_mutex * | mtx, |
uint32_t | timeout_ms | ||
) |
Definition at line 66 of file pios_mutex.c.
bool PIOS_Mutex_Unlock | ( | struct pios_mutex * | mtx | ) |
Definition at line 104 of file pios_mutex.c.
struct pios_recursive_mutex * PIOS_Recursive_Mutex_Create | ( | void | ) |
Definition at line 115 of file pios_mutex.c.
bool PIOS_Recursive_Mutex_Lock | ( | struct pios_recursive_mutex * | mtx, |
uint32_t | timeout_ms | ||
) |
Definition at line 139 of file pios_mutex.c.
bool PIOS_Recursive_Mutex_Unlock | ( | struct pios_recursive_mutex * | mtx | ) |
Definition at line 144 of file pios_mutex.c.