dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

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_mutexPIOS_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_mutexPIOS_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)
 

Detailed Description

Abstracts the concept of a mutex to hide different implementations.

Macro Definition Documentation

#define PIOS_MUTEX_TIMEOUT_MAX   0xffffffff

Definition at line 30 of file pios_mutex.h.

Function Documentation

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.