Go to the documentation of this file.
6 #ifndef ABTD_SPINLOCK_H_INCLUDED
7 #define ABTD_SPINLOCK_H_INCLUDED
13 #define ABTD_SPINLOCK_STATIC_INITIALIZER() \
15 ABTD_ATOMIC_BOOL_STATIC_INITIALIZER(0) \
int ABT_bool
Boolean type.
static uint16_t ABTD_atomic_test_and_set_bool(ABTD_atomic_bool *ptr)
static void ABTD_spinlock_acquire(ABTD_spinlock *p_lock)
struct ABTD_spinlock ABTD_spinlock
static ABT_bool ABTD_spinlock_try_acquire(ABTD_spinlock *p_lock)
static void ABTD_atomic_relaxed_clear_bool(ABTD_atomic_bool *ptr)
#define ABT_TRUE
True constant for ABT_bool.
static void ABTD_spinlock_clear(ABTD_spinlock *p_lock)
#define ABT_FALSE
False constant for ABT_bool.
static ABT_bool ABTD_atomic_acquire_load_bool(const ABTD_atomic_bool *ptr)
static void ABTD_spinlock_release(ABTD_spinlock *p_lock)
static void ABTD_atomic_release_clear_bool(ABTD_atomic_bool *ptr)
static ABT_bool ABTD_spinlock_is_locked(const ABTD_spinlock *p_lock)