distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos_Mutex Struct Reference

C-API equivalent of distortos::Mutex. More...

#include "distortos/C-API/Mutex.h"

Collaboration diagram for distortos_Mutex:

Public Attributes

struct estd_IntrusiveListNode node
struct estd_IntrusiveList blockedList
void * owner
uint16_t recursiveLocksCount
uint8_t priorityCeiling
uint8_t typeProtocol

Detailed Description

C-API equivalent of distortos::Mutex.

Similar to std::mutex - http://en.cppreference.com/w/cpp/thread/mutex Similar to POSIX pthread_mutex_t - http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09 -> 2.9.3 Thread Mutexes

See also

Member Data Documentation

◆ blockedList

struct estd_IntrusiveList distortos_Mutex::blockedList

ThreadControlBlock objects blocked on mutex

◆ node

struct estd_IntrusiveListNode distortos_Mutex::node

node for intrusive list

◆ owner

void* distortos_Mutex::owner

owner of the mutex

◆ priorityCeiling

uint8_t distortos_Mutex::priorityCeiling

priority ceiling of mutex, valid only when protocol_ == Protocol::priorityProtect

◆ recursiveLocksCount

uint16_t distortos_Mutex::recursiveLocksCount

number of recursive locks, used when mutex type is recursive

◆ typeProtocol

uint8_t distortos_Mutex::typeProtocol

type of mutex and its protocol

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