libmetal
Data Structures | Macros | Functions
spinlock.h File Reference
#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_VAR_INIT(0)}
 

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...