TNeo  BETA v1.08-11-g97e5a6d
Data Fields
TN_Mutex Struct Reference

Detailed Description

Mutex.

Definition at line 122 of file tn_mutex.h.

Data Fields

enum TN_ObjId id_mutex
 id for object validity verification. More...
 
struct TN_ListItem wait_queue
 List of tasks that wait a mutex.
 
struct TN_ListItem mutex_queue
 To include in task's locked mutexes list (if any)
 
struct TN_ListItem deadlock_list
 List of other mutexes involved in deadlock (normally, this list is empty)
 
enum TN_MutexProtocol protocol
 Mutex protocol: priority ceiling or priority inheritance.
 
struct TN_Taskholder
 Current mutex owner (task that locked mutex)
 
int ceil_priority
 Used if only protocol is TN_MUTEX_PROT_CEILING: maximum priority of task that may lock the mutex.
 
int cnt
 Lock count (for recursive locking)
 

Field Documentation

◆ id_mutex

enum TN_ObjId TN_Mutex::id_mutex

id for object validity verification.

This field is in the beginning of the structure to make it easier to detect memory corruption.

Definition at line 127 of file tn_mutex.h.


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