Lazuli
|
Spinlocks interface. More...
Go to the source code of this file.
Macros | |
#define | LZ_SPINLOCK_INIT ((uint8_t)0) |
Define the initialization value for the type Lz_Spinlock. More... | |
Typedefs | |
typedef volatile uint8_t | Lz_Spinlock |
Type used to represent a spinlock. | |
Functions | |
void | Lz_Spinlock_Lock (Lz_Spinlock *const spinlock) |
Set the lock and enter region, or active wait if the lock is already set. More... | |
void | Lz_Spinlock_Unlock (Lz_Spinlock *const spinlock) |
Unset the lock and leave region. More... | |
Spinlocks interface.
This file describes the interface for spinlocks.
Definition in file spinlock.h.
#define LZ_SPINLOCK_INIT ((uint8_t)0) |
Define the initialization value for the type Lz_Spinlock.
This macro constant must be used to statically initialize a declared spinlock.
Definition at line 34 of file spinlock.h.
void Lz_Spinlock_Lock | ( | Lz_Spinlock *const | spinlock | ) |
Set the lock and enter region, or active wait if the lock is already set.
spinlock | A pointer to a Lz_Spinlock used to hold the lock. |
spinlock
is NULL. void Lz_Spinlock_Unlock | ( | Lz_Spinlock *const | spinlock | ) |
Unset the lock and leave region.
spinlock | A pointer to a Lz_Spinlock used to hold the lock. |
spinlock
is NULL. Definition at line 20 of file spinlock.c.