RTEMS CPU Kit with SuperCore  4.11.2
Macros | Enumerations | Functions
corespinlockimpl.h File Reference

Inlined Routines Associated with the SuperCore Spinlock. More...

#include <rtems/score/corespinlock.h>
#include <rtems/score/watchdog.h>
Include dependency graph for corespinlockimpl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CORE_SPINLOCK_STATUS_LAST   CORE_SPINLOCK_UNAVAILABLE
 This is a shorthand for the last status code. More...
 
#define CORE_SPINLOCK_UNLOCKED   0
 This indicates the lock is available. More...
 
#define CORE_SPINLOCK_LOCKED   1
 This indicates the lock is unavailable. More...
 

Enumerations

enum  CORE_spinlock_Status {
  CORE_SPINLOCK_SUCCESSFUL, CORE_SPINLOCK_HOLDER_RELOCKING, CORE_SPINLOCK_NOT_HOLDER, CORE_SPINLOCK_TIMEOUT,
  CORE_SPINLOCK_IS_BUSY, CORE_SPINLOCK_UNAVAILABLE
}
 Core Spinlock handler return statuses. More...
 

Functions

void _CORE_spinlock_Initialize (CORE_spinlock_Control *the_spinlock, CORE_spinlock_Attributes *the_spinlock_attributes)
 Initialize the spinlock. More...
 
CORE_spinlock_Status _CORE_spinlock_Wait (CORE_spinlock_Control *the_spinlock, bool wait, Watchdog_Interval timeout)
 Wait for spinlock. More...
 
CORE_spinlock_Status _CORE_spinlock_Release (CORE_spinlock_Control *the_spinlock)
 Manually release the spinlock. More...
 
RTEMS_INLINE_ROUTINE void _CORE_spinlock_Initialize_attributes (CORE_spinlock_Attributes *the_attributes)
 This method is used to initialize core spinlock attributes. More...
 
RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy (CORE_spinlock_Control *the_spinlock)
 This method is used to determine if the spinlock is available or not. More...
 

Detailed Description

Inlined Routines Associated with the SuperCore Spinlock.

This include file contains all of the inlined routines associated with the SuperCore spinlock.