RT-Thread RTOS  1.2.0
An open source embedded real-time operating system

#include <rtdef.h>

Data Fields

struct rt_ipc_object parent
 
rt_uint8_t ceiling_priority
 
rt_uint8_t priority
 
rt_uint8_t hold
 
rt_uint8_t reserved
 
struct rt_threadowner
 
rt_list_t taken_list
 

Detailed Description

Mutual exclusion (mutex) structure

Field Documentation

◆ parent

struct rt_ipc_object rt_mutex::parent

inherit from ipc_object

◆ ceiling_priority

rt_uint8_t rt_mutex::ceiling_priority

the priority ceiling of mutexe

◆ priority

rt_uint8_t rt_mutex::priority

the maximal priority for pending thread

◆ hold

rt_uint8_t rt_mutex::hold

numbers of thread hold the mutex

◆ reserved

rt_uint8_t rt_mutex::reserved

reserved field

◆ owner

struct rt_thread* rt_mutex::owner

current owner of mutex

◆ taken_list

rt_list_t rt_mutex::taken_list

the object list taken by thread