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