Home
last modified time | relevance | path

Searched refs:kHeldMask (Results 1 – 2 of 2) sorted by relevance

/art/runtime/base/
Dmutex.cc444 if (LIKELY((cur_state & kHeldMask) == 0) /* lock not held */) { in ExclusiveLock()
445 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()
453 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveLock()
492 } while ((cur_state & kHeldMask) != 0); in ExclusiveLock()
498 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveLock()
583 if ((cur_state & kHeldMask) == 0) { in ExclusiveTryLock()
585 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()
590 DCHECK_NE(state_and_contenders_.load(std::memory_order_relaxed) & kHeldMask, 0); in ExclusiveTryLock()
625 [](int32_t v) { return (v & kHeldMask) == 0; })) { in ExclusiveTryLockWithSpinning()
637 state_and_contenders_.store(kHeldMask, std::memory_order_relaxed); in ExclusiveLockUncontendedFor()
[all …]
Dmutex.h262 static constexpr int32_t kHeldMask = 1; variable