14#ifndef LAZULI_SPINLOCK_H
15#define LAZULI_SPINLOCK_H
34#define LZ_SPINLOCK_INIT ((uint8_t)0)
unsigned char uint8_t
Represents a unsigned integer type with width of exactly 8 bits.
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
volatile uint8_t Lz_Spinlock
Type used to represent a spinlock.
void Lz_Spinlock_Lock(Lz_Spinlock *const spinlock)
Set the lock and enter region, or active wait if the lock is already set.
void Lz_Spinlock_Unlock(Lz_Spinlock *const spinlock)
Unset the lock and leave region.