ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

chmtx.h File Reference

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.
MutexchMtxUnlock (void)
 Unlocks the next owned mutex in reverse lock order.
MutexchMtxUnlockS (void)
 Unlocks the next owned mutex in reverse lock order.
void chMtxUnlockAll (void)
 Unlocks all the mutexes owned by the invoking thread.

Detailed Description

Mutexes macros and structures.

Definition in file chmtx.h.


Generated on Sun Jul 11 13:13:02 2010 for ChibiOS/RT by doxygen 1.6.3