Lines Matching refs:lock_value
101 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
102 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
105 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
108 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
112 SlowUnlock(lock_value); in Unlock()
133 static uint64_t DecodeWaitCycles(uint32_t lock_value);
159 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
161 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
165 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
166 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
208 inline uint32_t SpinLock::TryLockInternal(uint32_t lock_value, in TryLockInternal() argument
210 if ((lock_value & kSpinLockHeld) != 0) { in TryLockInternal()
211 return lock_value; in TryLockInternal()
215 if ((lock_value & kSpinLockCooperative) == 0) { in TryLockInternal()
224 lock_value, in TryLockInternal()
225 kSpinLockHeld | lock_value | wait_cycles | sched_disabled_bit, in TryLockInternal()
230 return lock_value; in TryLockInternal()