ARGOBOTS
0fe9a69fef0da01b7d13b05bf3ea11c116497027
|
Go to the documentation of this file.
6 #ifndef ABTI_SPINLOCK_H_INCLUDED
7 #define ABTI_SPINLOCK_H_INCLUDED
13 #define ABTI_SPINLOCK_STATIC_INITIALIZER() \
15 ABTD_ATOMIC_BOOL_STATIC_INITIALIZER(0) \
int ABT_bool
Boolean type.
static void ABTI_spinlock_clear(ABTI_spinlock *p_lock)
static ABT_bool ABTI_spinlock_is_locked(const ABTI_spinlock *p_lock)
static uint16_t ABTD_atomic_test_and_set_bool(ABTD_atomic_bool *ptr)
static ABT_bool ABTI_spinlock_try_acquire(ABTI_spinlock *p_lock)
static void ABTI_spinlock_release(ABTI_spinlock *p_lock)
static void ABTI_spinlock_acquire(ABTI_spinlock *p_lock)
static void ABTD_atomic_relaxed_clear_bool(ABTD_atomic_bool *ptr)
#define ABT_TRUE
True constant for ABT_bool.
#define ABT_FALSE
False constant for ABT_bool.
static ABT_bool ABTD_atomic_acquire_load_bool(const ABTD_atomic_bool *ptr)
static void ABTD_atomic_release_clear_bool(ABTD_atomic_bool *ptr)