diff --git a/src/common/util/spin_lock.h b/src/common/util/spin_lock.h index 3b16d5c..93695b1 100644 --- a/src/common/util/spin_lock.h +++ b/src/common/util/spin_lock.h @@ -10,6 +10,8 @@ typedef struct { volatile atomic_flag flag; } SpinLock; +#define SPIN_LOCK_UNLOCKED (SpinLock) { .flag = ATOMIC_FLAG_INIT } + HEADER_FN bool spin_lock_try_acquire(SpinLock *lock) {