RTEMS CPU Kit with SuperCore  4.11.3
Data Fields
CORE_spinlock_Control Struct Reference

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

#include <corespinlock.h>

Collaboration diagram for CORE_spinlock_Control:
Collaboration graph
[legend]

Data Fields

CORE_spinlock_Attributes Attributes
 XXX may not be needed.
 
volatile uint32_t lock
 This field is the lock.
 
volatile uint32_t users
 This field is a count of the current number of threads using this spinlock. More...
 
volatile Objects_Id holder
 This field is the Id of the thread holding the lock. More...
 

Detailed Description

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

Field Documentation

◆ holder

volatile Objects_Id CORE_spinlock_Control::holder

This field is the Id of the thread holding the lock.

It may or may not be the thread which acquired it.

Referenced by _CORE_spinlock_Initialize(), and _CORE_spinlock_Release().

◆ users

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_Initialize(), and _CORE_spinlock_Is_busy().


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