CORE_mutex_Control Struct Reference
[Mutex Handler]

Core Mutex Control Structure. More...

#include <coremutex.h>

Collaboration diagram for CORE_mutex_Control:

Collaboration graph
[legend]

Data Fields

Thread_queue_Control Wait_queue
CORE_mutex_Attributes Attributes
uint32_t lock
uint32_t nest_count
uint32_t blocked_count
Thread_Controlholder
Objects_Id holder_id

Detailed Description

Core Mutex Control Structure.

The following defines the control block used to manage each mutex.


Field Documentation

This field is the Waiting Queue used to manage the set of tasks which are blocked waiting to lock the mutex.

This element is the set of attributes which define this instance's behavior.

Referenced by _CORE_mutex_Seize_interrupt_trylock_body().

This element contains the current state of the mutex.

Referenced by _CORE_mutex_Is_locked(), and _CORE_mutex_Seize_interrupt_trylock_body().

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 _CORE_mutex_Seize_interrupt_trylock_body().

This is the number of waiting threads.

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 _CORE_mutex_Seize_interrupt_trylock_body().

This element contains the object Id of the holding thread.

Referenced by _CORE_mutex_Seize_interrupt_trylock_body().


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

Generated on Sun Jul 27 00:17:32 2008 for RTEMSSuperCore by  doxygen 1.5.6