Searched refs:Unlocked (Results 1 – 1 of 1) sorted by relevance
37 Unlocked = 0, enumerator50 atomic_init(&state, Unlocked); in init()55 LockState old_state = Unlocked; in lock()60 while (atomic_exchange_explicit(&state, LockedWithWaiter, memory_order_acquire) != Unlocked) { in lock()68 if (atomic_exchange_explicit(&state, Unlocked, memory_order_release) == LockedWithWaiter) { in unlock()