RTEMS CPU Kit with SuperCore
4.11.3
|
Control block used to manage each mutex. More...
#include <coremutex.h>
Data Fields | |
Thread_queue_Control | Wait_queue |
This field is the Waiting Queue used to manage the set of tasks which are blocked waiting to lock the mutex. | |
CORE_mutex_Attributes | Attributes |
This element is the set of attributes which define this instance's behavior. | |
uint32_t | nest_count |
This element contains the number of times the mutex has been acquired nested. More... | |
Thread_Control * | holder |
This element points to the thread which is currently holding this mutex. More... | |
Control block used to manage each mutex.
The following defines the control block used to manage each mutex.
Thread_Control* CORE_mutex_Control::holder |
This element points to the thread which is currently holding this mutex.
The holder is the last thread to successfully lock the mutex and which has not unlocked it. If the thread is not locked, there is no holder.
Referenced by _API_Mutex_Is_owner(), _CORE_mutex_Initialize(), _CORE_mutex_Is_locked(), _CORE_mutex_Seize_interrupt_trylock_body(), and _CORE_mutex_Surrender().
uint32_t CORE_mutex_Control::nest_count |
This element contains the number of times the mutex has been acquired nested.
This must be zero (0) before the mutex is actually unlocked.
Referenced by _API_Mutex_Unlock(), _CORE_mutex_Initialize(), and _CORE_mutex_Seize_interrupt_trylock_body().