rmutex_t Struct Reference

Mutex structure. More...

Detailed Description

Mutex structure.

Must never be modified by the user.

Definition at line 43 of file rmutex.h.

#include <rmutex.h>

Data Fields

mutex_t mutex
 The mutex used for locking. More...
 
uint16_t refcount
 Number of locks owned by the thread owner.
 
atomic_int_least16_t owner
 Owner thread of the mutex. More...
 

Field Documentation

◆ mutex

mutex_t rmutex_t::mutex

The mutex used for locking.

Must never be changed by the user.

Definition at line 50 of file rmutex.h.

◆ owner

atomic_int_least16_t rmutex_t::owner

Owner thread of the mutex.

Owner is written by the mutex holder, and read concurrently to ensure consistency, atomic_int_least16_t is used. Note kernel_pid_t is an int16

Definition at line 65 of file rmutex.h.


The documentation for this struct was generated from the following file: