ChibiOS/RT Architecture - Reference Manual - Guides |
Mutexes macros and structures. More...
Go to the source code of this file.
Data Structures | |
struct | Mutex |
Mutex structure. More... | |
Defines | |
#define | _MUTEX_DATA(name) {_THREADSQUEUE_DATA(name.m_queue), NULL, NULL} |
Data part of a static mutex initializer. | |
#define | MUTEX_DECL(name) Mutex name = _MUTEX_DATA(name) |
Static mutex initializer. | |
#define | chMtxQueueNotEmptyS(mp) notempty(&(mp)->m_queue) |
Returns TRUE if the mutex queue contains at least a waiting thread. | |
Typedefs | |
typedef struct Mutex | Mutex |
Mutex structure. | |
Functions | |
void | chMtxInit (Mutex *mp) |
Initializes s Mutex structure. | |
void | chMtxLock (Mutex *mp) |
Locks the specified mutex. | |
void | chMtxLockS (Mutex *mp) |
Locks the specified mutex. | |
bool_t | chMtxTryLock (Mutex *mp) |
Tries to lock a mutex. | |
bool_t | chMtxTryLockS (Mutex *mp) |
Tries to lock a mutex. | |
Mutex * | chMtxUnlock (void) |
Unlocks the next owned mutex in reverse lock order. | |
Mutex * | chMtxUnlockS (void) |
Unlocks the next owned mutex in reverse lock order. | |
void | chMtxUnlockAll (void) |
Unlocks all the mutexes owned by the invoking thread. |
Mutexes macros and structures.
Definition in file chmtx.h.