#include <metal/atomic.h>
#include <metal/cpu.h>
Go to the source code of this file.
Data Structures | |
struct | metal_spinlock |
Macros | |
#define | METAL_SPINLOCK_INIT {ATOMIC_FLAG_INIT} |
Static metal spinlock initialization. More... | |
Functions | |
static void | metal_spinlock_init (struct metal_spinlock *slock) |
Initialize a libmetal spinlock. More... | |
static void | metal_spinlock_acquire (struct metal_spinlock *slock) |
Acquire a spinlock. More... | |
static void | metal_spinlock_release (struct metal_spinlock *slock) |
Release a previously acquired spinlock. More... | |