Searched refs:Unlocked (Results 1 – 1 of 1) sorted by relevance
40 Unlocked = 0, enumerator49 atomic_init(&state, Unlocked); in init()54 LockState old_state = Unlocked; in trylock()60 LockState old_state = Unlocked; in lock()65 while (atomic_exchange_explicit(&state, LockedWithWaiter, memory_order_acquire) != Unlocked) { in lock()74 if (atomic_exchange_explicit(&state, Unlocked, memory_order_release) == LockedWithWaiter) { in unlock()