ChibiOS/RT 7.0.5
chmtx.h File Reference

Mutexes macros and structures. More...

Go to the source code of this file.

Data Structures

struct  ch_mutex
 Mutex structure. More...

Macros

#define __MUTEX_DATA(name)
 Data part of a static mutex initializer.
#define MUTEX_DECL(name)
 Static mutex initializer.

Typedefs

typedef struct ch_mutex mutex_t
 Type of a mutex structure.

Functions

void chMtxObjectInit (mutex_t *mp)
 Initializes s mutex_t structure.
void chMtxLock (mutex_t *mp)
 Locks the specified mutex.
void chMtxLockS (mutex_t *mp)
 Locks the specified mutex.
bool chMtxTryLock (mutex_t *mp)
 Tries to lock a mutex.
bool chMtxTryLockS (mutex_t *mp)
 Tries to lock a mutex.
void chMtxUnlock (mutex_t *mp)
 Unlocks the specified mutex.
void chMtxUnlockS (mutex_t *mp)
 Unlocks the specified mutex.
void chMtxUnlockAll (void)
 Unlocks all mutexes owned by the invoking thread.
void chMtxUnlockAllS (void)
 Unlocks all mutexes owned by the invoking thread.
static bool chMtxQueueNotEmptyS (mutex_t *mp)
 Returns true if the mutex queue contains at least a waiting thread.
static thread_tchMtxGetOwnerI (mutex_t *mp)
 Returns the mutex owner thread.
static mutex_tchMtxGetNextMutexX (void)
 Returns the next mutex in the mutexes stack of the current thread.

Detailed Description

Mutexes macros and structures.

Definition in file chmtx.h.