Searched refs:kHeldMask (Results 1 – 2 of 2) sorted by relevance
429 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock()430 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()438 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveLock()461 } while ((cur_state & kHeldMask) != 0); in ExclusiveLock()467 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveLock()494 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock()496 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()501 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveTryLock()536 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveTryLockWithSpinning()548 state_and_contenders_.store(kHeldMask, std::memory_order_relaxed); in ExclusiveLockUncontendedFor()[all …]
247 static constexpr int32_t kHeldMask = 1; variable