Searched refs:kHeldMask (Results 1 – 2 of 2) sorted by relevance
462 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock()463 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()471 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveLock()510 } while ((cur_state & kHeldMask) != 0); in ExclusiveLock()516 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveLock()602 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock()604 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()609 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveTryLock()647 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveTryLockWithSpinning()659 state_and_contenders_.store(kHeldMask, std::memory_order_relaxed); in ExclusiveLockUncontendedFor()[all …]
266 static constexpr int32_t kHeldMask = 1; variable