Lines Matching refs:kHeldMask
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()
593 if (LIKELY((cur_state & kHeldMask) != 0)) { in ExclusiveUnlock()
597 uint32_t new_state = cur_state & ~kHeldMask; // Same number of contenders. in ExclusiveUnlock()