CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
RecursiveMutexState Struct Reference

State for a recursive mutex. More...

#include <locks.h>

Collaboration diagram for RecursiveMutexState:

Public Attributes

struct FlagLockState lock
 The underlying lock.
uint16_t depth
 The count of the times the lock has been acquired by the same thread.

Detailed Description

State for a recursive mutex.

Recursive mutexes allow a single thread to acquire the lock multiple times.

Definition at line 47 of file locks.h.

Member Data Documentation

◆ depth

uint16_t RecursiveMutexState::depth

The count of the times the lock has been acquired by the same thread.

This must be initialised to 0.

Definition at line 57 of file locks.h.

Referenced by xSemaphoreCreateRecursiveMutexStatic().

◆ lock

struct FlagLockState RecursiveMutexState::lock

The underlying lock.

Definition at line 52 of file locks.h.

Referenced by uxSemaphoreGetCount(), xSemaphoreCreateRecursiveMutexStatic(), and xSemaphoreGetMutexHolder().


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