RTEMS CPU Kit with SuperCore
4.11.3
|
The following defines the control block used to manage each spinlock. More...
#include <corespinlock.h>
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... | |
The following defines the control block used to manage each spinlock.
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().
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().