Searched refs:kHeldMask (Results 1 – 2 of 2) sorted by relevance
370 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock()371 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()396 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveLock()422 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock()424 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()429 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveTryLock()479 if (LIKELY((cur_state & kHeldMask) != 0)) { in ExclusiveUnlock()483 uint32_t new_state = cur_state & ~kHeldMask; // Same number of contenders. in ExclusiveUnlock()
221 static constexpr int32_t kHeldMask = 1; variable