Home
last modified time | relevance | path

Searched refs:lock_value (Results 1 – 25 of 36) sorted by relevance

12

/external/tensorflow/third_party/absl/abseil-cpp/absl/base/internal/
Dspinlock.cc98 uint32_t lock_value; in SpinLoop() local
100 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
101 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
102 return lock_value; in SpinLoop()
106 uint32_t lock_value = SpinLoop(); in SlowLock() local
107 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
108 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
113 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
126 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
129 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
[all …]
Dspinlock.h100 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
101 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
104 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
107 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
111 SlowUnlock(lock_value); in Unlock()
140 static int64_t DecodeWaitCycles(uint32_t lock_value);
178 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
180 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
184 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
185 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
[all …]
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dspinlock.cc98 uint32_t lock_value; in SpinLoop() local
100 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
101 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
102 return lock_value; in SpinLoop()
106 uint32_t lock_value = SpinLoop(); in SlowLock() local
107 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
108 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
113 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
126 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
129 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
[all …]
Dspinlock.h96 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
97 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
100 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
103 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
107 SlowUnlock(lock_value); in Unlock()
136 static int64_t DecodeWaitCycles(uint32_t lock_value);
174 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
176 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
180 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
181 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
[all …]
/external/abseil-cpp/absl/base/internal/
Dspinlock.cc98 uint32_t lock_value; in SpinLoop() local
100 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
101 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
102 return lock_value; in SpinLoop()
106 uint32_t lock_value = SpinLoop(); in SlowLock() local
107 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
108 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
113 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
126 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
129 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
[all …]
Dspinlock.h100 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
101 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
104 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
107 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
111 SlowUnlock(lock_value); in Unlock()
140 static uint64_t DecodeWaitCycles(uint32_t lock_value);
178 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
180 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
184 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
185 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
[all …]
/external/cronet/third_party/abseil-cpp/absl/base/internal/
Dspinlock.cc98 uint32_t lock_value; in SpinLoop() local
100 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
101 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
102 return lock_value; in SpinLoop()
106 uint32_t lock_value = SpinLoop(); in SlowLock() local
107 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
108 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
113 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
126 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
129 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
[all …]
Dspinlock.h96 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
97 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
100 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
103 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
107 SlowUnlock(lock_value); in Unlock()
136 static int64_t DecodeWaitCycles(uint32_t lock_value);
174 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
176 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
180 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
181 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dspinlock.cc95 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 …]
Dspinlock.h98 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 …]
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dspinlock.cc98 uint32_t lock_value; in SpinLoop() local
100 lock_value = lockword_.load(std::memory_order_relaxed); in SpinLoop()
101 } while ((lock_value & kSpinLockHeld) != 0 && --c > 0); in SpinLoop()
102 return lock_value; in SpinLoop()
106 uint32_t lock_value = SpinLoop(); in SlowLock() local
107 lock_value = TryLockInternal(lock_value, 0); in SlowLock()
108 if ((lock_value & kSpinLockHeld) == 0) { in SlowLock()
113 if ((lock_value & kSpinLockCooperative) != 0) { in SlowLock()
126 while ((lock_value & kSpinLockHeld) != 0) { in SlowLock()
129 if ((lock_value & kWaitTimeMask) == 0) { in SlowLock()
[all …]
Dspinlock.h96 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in Unlock() local
97 lock_value = lockword_.exchange(lock_value & kSpinLockCooperative, in Unlock()
100 if ((lock_value & kSpinLockDisabledScheduling) != 0) { in Unlock()
103 if ((lock_value & kWaitTimeMask) != 0) { in Unlock()
107 SlowUnlock(lock_value); in Unlock()
136 static int64_t DecodeWaitCycles(uint32_t lock_value);
174 uint32_t TryLockInternal(uint32_t lock_value, uint32_t wait_cycles);
176 void SlowUnlock(uint32_t lock_value) ABSL_ATTRIBUTE_COLD;
180 uint32_t lock_value = lockword_.load(std::memory_order_relaxed); in TryLockImpl() local
181 return (TryLockInternal(lock_value, 0) & kSpinLockHeld) == 0; in TryLockImpl()
[all …]
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dspinlock.cc95 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 …]
Dspinlock.h101 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 …]
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dspinlock.cc95 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 …]
Dspinlock.h101 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 …]
/external/openscreen/third_party/abseil/src/absl/base/
Dspinlock_test_common.cc51 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()
/external/libtextclassifier/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 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()
/external/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 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()
/external/webrtc/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 static int64_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(0u, lock_value & kLockwordReservedMask); in TEST()
157 int64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 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()
/external/cronet/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 static int64_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(0u, lock_value & kLockwordReservedMask); in TEST()
157 int64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
/external/angle/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 static int64_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(0u, lock_value & kLockwordReservedMask); in TEST()
157 int64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
/external/tensorflow/third_party/absl/abseil-cpp/absl/base/
Dspinlock_test_common.cc51 static int64_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 int64_t decoded = SpinLockTest::DecodeWaitCycles(lock_value); in TEST()
/external/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_conpro.c102 int lock_value = 1; in main() local
118 if (-1 == sem_init(&buf.lock, shared, lock_value)) { in main()

12