/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
D | spinlock.cc | 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() [all …]
|
D | spinlock.h | 98 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local 99 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock() 102 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock() 105 if ((lock_value & kWaitTimeMask) != 0) { in Unlock() 109 SlowUnlock(lock_value); in Unlock() 130 static uint64_t DecodeWaitCycles(uint32_t lock_value); 168 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles); 170 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD; 174 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local 175 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl() [all …]
|
/third_party/abseil-cpp/absl/base/internal/ |
D | spinlock.cc | 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() [all …]
|
D | spinlock.h | 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() [all …]
|
/third_party/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 51 static uint64_t DecodeWaitCycles(uint32_t lock_value) { in DecodeWaitCycles() 52 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles() 154 uint32_t lock_value = SpinLockTest::EncodeWaitCycles(start_time, end_time); in TEST() local 155 EXPECT_EQ(0, lock_value & kLockwordReservedMask); in TEST() 156 uint64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 51 static uint64_t DecodeWaitCycles(uint32_t lock_value) { in DecodeWaitCycles() 52 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles() 155 uint32_t lock_value = SpinLockTest::EncodeWaitCycles(start_time, end_time); in TEST() local 156 EXPECT_EQ(0, lock_value & kLockwordReservedMask); in TEST() 157 uint64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
|
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_conpro.c | 102 int lock_value = 1; in main() local 118 if (-1 == sem_init(&buf.lock, shared, lock_value)) { in main()
|
D | sem_sleepingbarber.c | 144 int lock_value = 1; in main() local 163 if (-1 == sem_init(&lock, shared, lock_value)) { in main()
|
D | sem_philosopher.c | 123 int lock_value = 1; in main() local 137 if (-1 == sem_init(&lock, shared, lock_value)) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/semaphores/ |
D | multi_con_pro.c | 151 int lock_value = 1; in main() local 188 if (-1 == sem_init(&buf->lock, shared, lock_value)) { in main()
|
/third_party/abseil-cpp/absl/time/ |
D | clock.cc | 440 uint64_t lock_value = SeqAcquire(&seq); // acquire seqlock to block readers in UpdateLastSample() local 519 SeqRelease(&seq, lock_value); // release the readers in UpdateLastSample()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | clock.cc | 446 uint64_t lock_value = in UpdateLastSample() local 534 SeqRelease(&time_state.seq, lock_value); // release the readers in UpdateLastSample()
|