Lines Matching refs:lock_value
95 uint32_t lock_value; in SpinLoop() local
97 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
98 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
99 return lock_value; in SpinLoop()
103 uint32_t lock_value = SpinLoop(); in SlowLock() local
104 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
105 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
110 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
123 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
126 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
131 lock_value, lock_value | kSpinLockSleeper, in SlowLock()
136 lock_value |= kSpinLockSleeper; in SlowLock()
137 } else if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
141 lock_value = TryLockInternal(lock_value, wait_cycles); in SlowLock()
150 base_internal::SpinLockDelay(&lockword_, lock_value, ++lock_wait_call_count, in SlowLock()
155 lock_value = SpinLoop(); in SlowLock()
157 lock_value = TryLockInternal(lock_value, wait_cycles); in SlowLock()
161 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock() argument
168 if ((lock_value & kWaitTimeMask) != kSpinLockSleeper) { in SlowUnlock()
169 const uint64_t wait_cycles = DecodeWaitCycles(lock_value); in SlowUnlock()
211 uint64_t SpinLock::DecodeWaitCycles(uint32_t lock_value) { in DecodeWaitCycles() argument
214 static_cast<uint32_t>(lock_value & kWaitTimeMask); in DecodeWaitCycles()