ChibiOS/RT  6.0.3
ch_mutex Struct Reference

Mutex structure. More...

#include <chmtx.h>

Collaboration diagram for ch_mutex:
Collaboration graph

Data Fields

threads_queue_t queue
 Queue of the threads sleeping on this mutex. More...
 
thread_towner
 Owner thread_t pointer or NULL. More...
 
mutex_tnext
 Next mutex_t into an owner-list or NULL. More...
 
cnt_t cnt
 Mutex recursion counter. More...
 

Detailed Description

Mutex structure.

Definition at line 57 of file chmtx.h.

Field Documentation

threads_queue_t ch_mutex::queue

Queue of the threads sleeping on this mutex.

Definition at line 58 of file chmtx.h.

Referenced by chMtxLockS(), chMtxObjectInit(), chMtxQueueNotEmptyS(), chMtxUnlock(), chMtxUnlockAll(), chMtxUnlockAllS(), and chMtxUnlockS().

thread_t* ch_mutex::owner

Owner thread_t pointer or NULL.

Definition at line 60 of file chmtx.h.

Referenced by chMtxGetOwnerI(), chMtxLockS(), chMtxObjectInit(), chMtxTryLockS(), chMtxUnlock(), chMtxUnlockAll(), chMtxUnlockAllS(), and chMtxUnlockS().

mutex_t* ch_mutex::next

Next mutex_t into an owner-list or NULL.

Definition at line 62 of file chmtx.h.

Referenced by chMtxLockS(), chMtxTryLockS(), chMtxUnlock(), chMtxUnlockAll(), chMtxUnlockAllS(), and chMtxUnlockS().

cnt_t ch_mutex::cnt

Mutex recursion counter.

Definition at line 65 of file chmtx.h.

Referenced by chMtxLockS(), chMtxObjectInit(), chMtxTryLockS(), chMtxUnlock(), chMtxUnlockAll(), chMtxUnlockAllS(), and chMtxUnlockS().