The friendly Operating System for the Internet of Things
rmutex_t Struct Reference

Mutex structure. More...

Detailed Description

Must never be modified by the user.

Definition at line 36 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_t rmutex_t::mutex

Must never be changed by the user.

Definition at line 43 of file rmutex.h.

atomic_int_least16_t rmutex_t::owner

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

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