Loading...
Searching...
No Matches
rmutex_t Struct Reference

Mutex structure. More...

Detailed Description

Mutex structure.

Must never be modified by the user.

Definition at line 38 of file rmutex.h.

#include <rmutex.h>

Data Fields

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

Field Documentation

◆ mutex

mutex_t rmutex_t::mutex

The mutex used for locking.

Must never be changed by the user.

Definition at line 45 of file rmutex.h.

◆ owner

kernel_pid_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 60 of file rmutex.h.

◆ refcount

uint16_t rmutex_t::refcount

Number of locks owned by the thread owner.

Definition at line 51 of file rmutex.h.


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