CORE_spinlock_Control Struct Reference
[Spinlock Handler]

#include <corespinlock.h>

Collaboration diagram for CORE_spinlock_Control:

Collaboration graph
[legend]

Data Fields

CORE_spinlock_Attributes Attributes
volatile uint32_t lock
volatile uint32_t users
volatile Objects_Id holder

Detailed Description

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

Field Documentation

XXX may not be needed

volatile uint32_t CORE_spinlock_Control::lock

This field is the lock.

volatile uint32_t CORE_spinlock_Control::users

This field is a count of the current number of threads using this spinlock. It includes the thread holding the lock as well as those waiting.

Referenced by _CORE_spinlock_Is_busy().

This field is the Id of the thread holding the lock. It may or may not be the thread which acquired it.


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

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