Home
last modified time | relevance | path

Searched refs:SpinLock (Results 1 – 25 of 106) sorted by relevance

12345

/external/libchromeos-rs/src/sync/
Dspin.rs26 pub struct SpinLock<T: ?Sized> { struct
31 impl<T> SpinLock<T> { argument
33 pub fn new(value: T) -> SpinLock<T> { in new()
34 SpinLock { in new()
49 impl<T: ?Sized> SpinLock<T> { impl
84 unsafe impl<T: ?Sized + Send> Send for SpinLock<T> {} implementation
85 unsafe impl<T: ?Sized + Send> Sync for SpinLock<T> {} implementation
87 impl<T: ?Sized + Default> Default for SpinLock<T> { implementation
93 impl<T> From<T> for SpinLock<T> { implementation
103 lock: &'a SpinLock<T>,
[all …]
Dwaiter.rs17 use crate::sync::SpinLock;
123 state: SpinLock<State>,
124 cancel: SpinLock<Cancel>,
156 state: SpinLock::new(State::Init), in new()
157 cancel: SpinLock::new(Cancel { in new()
/external/crosvm/cros_async/src/sync/
Dspin.rs27 pub struct SpinLock<T: ?Sized> { struct
32 impl<T> SpinLock<T> { implementation
34 pub fn new(value: T) -> SpinLock<T> { in new()
35 SpinLock { in new()
50 impl<T: ?Sized> SpinLock<T> { implementation
90 unsafe impl<T: ?Sized + Send> Send for SpinLock<T> {} implementation
91 unsafe impl<T: ?Sized + Send> Sync for SpinLock<T> {} implementation
93 impl<T: ?Sized + Default> Default for SpinLock<T> { implementation
99 impl<T> From<T> for SpinLock<T> { implementation
109 lock: &'a SpinLock<T>,
[all …]
/external/abseil-cpp/absl/base/internal/
Dspinlock.h52 class ABSL_LOCKABLE SpinLock {
54 SpinLock() : lockword_(kSpinLockCooperative) { in SpinLock() function
69 explicit SpinLock(base_internal::LinkerInitialized) { in SpinLock() function
76 explicit SpinLock(base_internal::SchedulingMode mode);
77 SpinLock(base_internal::LinkerInitialized,
80 ~SpinLock() { ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static); } in ~SpinLock()
177 SpinLock(const SpinLock&) = delete;
178 SpinLock& operator=(const SpinLock&) = delete;
185 inline explicit SpinLockHolder(SpinLock* l) ABSL_EXCLUSIVE_LOCK_FUNCTION(l) in SpinLockHolder()
195 SpinLock* lock_;
[all …]
Dspinlock.cc70 SpinLock::SpinLock(base_internal::SchedulingMode mode) in SpinLock() function in absl::base_internal::SpinLock
75 SpinLock::SpinLock(base_internal::LinkerInitialized, in SpinLock() function in absl::base_internal::SpinLock
92 void SpinLock::InitLinkerInitializedAndCooperative() { in InitLinkerInitializedAndCooperative()
101 uint32_t SpinLock::SpinLoop() { in SpinLoop()
118 void SpinLock::SlowLock() { in SlowLock()
175 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock()
199 uint32_t SpinLock::EncodeWaitCycles(int64_t wait_start_time, in EncodeWaitCycles()
223 uint64_t SpinLock::DecodeWaitCycles(uint32_t lock_value) { in DecodeWaitCycles()
Dlow_level_scheduling.h35 class SpinLock; // To allow use of SchedulingGuard. variable
81 friend class SpinLock; variable
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dspinlock.h52 class ABSL_LOCKABLE SpinLock {
54 SpinLock() : lockword_(kSpinLockCooperative) { in SpinLock() function
69 explicit SpinLock(base_internal::LinkerInitialized) { in SpinLock() function
76 explicit SpinLock(base_internal::SchedulingMode mode);
77 SpinLock(base_internal::LinkerInitialized,
80 ~SpinLock() { ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static); } in ~SpinLock()
177 SpinLock(const SpinLock&) = delete;
178 SpinLock& operator=(const SpinLock&) = delete;
185 inline explicit SpinLockHolder(SpinLock* l) ABSL_EXCLUSIVE_LOCK_FUNCTION(l) in SpinLockHolder()
195 SpinLock* lock_;
[all …]
Dspinlock.cc70 SpinLock::SpinLock(base_internal::SchedulingMode mode) in SpinLock() function in absl::base_internal::SpinLock
75 SpinLock::SpinLock(base_internal::LinkerInitialized, in SpinLock() function in absl::base_internal::SpinLock
92 void SpinLock::InitLinkerInitializedAndCooperative() { in InitLinkerInitializedAndCooperative()
101 uint32_t SpinLock::SpinLoop() { in SpinLoop()
118 void SpinLock::SlowLock() { in SlowLock()
175 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock()
199 uint32_t SpinLock::EncodeWaitCycles(int64_t wait_start_time, in EncodeWaitCycles()
223 uint64_t SpinLock::DecodeWaitCycles(uint32_t lock_value) { in DecodeWaitCycles()
Dlow_level_scheduling.h35 class SpinLock; // To allow use of SchedulingGuard. variable
81 friend class SpinLock; variable
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dspinlock.h53 class ABSL_LOCKABLE SpinLock {
55 SpinLock() : lockword_(kSpinLockCooperative) { in SpinLock() function
61 explicit SpinLock(base_internal::SchedulingMode mode);
64 constexpr SpinLock(absl::ConstInitType, base_internal::SchedulingMode mode) in SpinLock() function
71 ~SpinLock() { ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static); } in ~SpinLock()
73 ~SpinLock() = default;
171 SpinLock(const SpinLock&) = delete;
172 SpinLock& operator=(const SpinLock&) = delete;
179 inline explicit SpinLockHolder(SpinLock* l) ABSL_EXCLUSIVE_LOCK_FUNCTION(l) in SpinLockHolder()
189 SpinLock* lock_;
[all …]
Dspinlock.cc70 constexpr uint32_t SpinLock::kSpinLockHeld;
71 constexpr uint32_t SpinLock::kSpinLockCooperative;
72 constexpr uint32_t SpinLock::kSpinLockDisabledScheduling;
73 constexpr uint32_t SpinLock::kSpinLockSleeper;
74 constexpr uint32_t SpinLock::kWaitTimeMask;
77 SpinLock::SpinLock(base_internal::SchedulingMode mode) in SpinLock() function in absl::base_internal::SpinLock
85 uint32_t SpinLock::SpinLoop() { in SpinLoop()
102 void SpinLock::SlowLock() { in SlowLock()
161 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock()
187 uint32_t SpinLock::EncodeWaitCycles(int64_t wait_start_time, in EncodeWaitCycles()
[all …]
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dspinlock.h53 class ABSL_LOCKABLE SpinLock {
55 SpinLock() : lockword_(kSpinLockCooperative) { in SpinLock() function
61 explicit SpinLock(base_internal::SchedulingMode mode);
64 constexpr SpinLock(absl::ConstInitType, base_internal::SchedulingMode mode) in SpinLock() function
71 ~SpinLock() { ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static); } in ~SpinLock()
73 ~SpinLock() = default;
171 SpinLock(const SpinLock&) = delete;
172 SpinLock& operator=(const SpinLock&) = delete;
179 inline explicit SpinLockHolder(SpinLock* l) ABSL_EXCLUSIVE_LOCK_FUNCTION(l) in SpinLockHolder()
189 SpinLock* lock_;
[all …]
Dspinlock.cc70 constexpr uint32_t SpinLock::kSpinLockHeld;
71 constexpr uint32_t SpinLock::kSpinLockCooperative;
72 constexpr uint32_t SpinLock::kSpinLockDisabledScheduling;
73 constexpr uint32_t SpinLock::kSpinLockSleeper;
74 constexpr uint32_t SpinLock::kWaitTimeMask;
77 SpinLock::SpinLock(base_internal::SchedulingMode mode) in SpinLock() function in absl::base_internal::SpinLock
85 uint32_t SpinLock::SpinLoop() { in SpinLoop()
102 void SpinLock::SlowLock() { in SlowLock()
161 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock()
187 uint32_t SpinLock::EncodeWaitCycles(int64_t wait_start_time, in EncodeWaitCycles()
[all …]
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dspinlock.h53 class ABSL_LOCKABLE SpinLock {
55 SpinLock() : lockword_(kSpinLockCooperative) { in SpinLock() function
61 explicit SpinLock(base_internal::SchedulingMode mode);
64 constexpr SpinLock(absl::ConstInitType, base_internal::SchedulingMode mode) in SpinLock() function
71 ~SpinLock() { ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static); } in ~SpinLock()
73 ~SpinLock() = default;
171 SpinLock(const SpinLock&) = delete;
172 SpinLock& operator=(const SpinLock&) = delete;
179 inline explicit SpinLockHolder(SpinLock* l) ABSL_EXCLUSIVE_LOCK_FUNCTION(l) in SpinLockHolder()
189 SpinLock* lock_;
[all …]
Dspinlock.cc70 constexpr uint32_t SpinLock::kSpinLockHeld;
71 constexpr uint32_t SpinLock::kSpinLockCooperative;
72 constexpr uint32_t SpinLock::kSpinLockDisabledScheduling;
73 constexpr uint32_t SpinLock::kSpinLockSleeper;
74 constexpr uint32_t SpinLock::kWaitTimeMask;
77 SpinLock::SpinLock(base_internal::SchedulingMode mode) in SpinLock() function in absl::base_internal::SpinLock
85 uint32_t SpinLock::SpinLoop() { in SpinLoop()
102 void SpinLock::SlowLock() { in SlowLock()
161 void SpinLock::SlowUnlock(uint32_t lock_value) { in SlowUnlock()
187 uint32_t SpinLock::EncodeWaitCycles(int64_t wait_start_time, in EncodeWaitCycles()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc49 return SpinLock::EncodeWaitCycles(wait_start_time, wait_end_time); in EncodeWaitCycles()
52 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles()
61 ABSL_CONST_INIT static SpinLock static_cooperative_spinlock(
63 ABSL_CONST_INIT static SpinLock static_noncooperative_spinlock(
82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction()
93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest()
109 static_assert(std::is_trivially_destructible<SpinLock>(), "");
112 TEST(SpinLock, StackNonCooperativeDisablesScheduling) { in TEST() argument
113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST()
119 TEST(SpinLock, StaticNonCooperativeDisablesScheduling) { in TEST() argument
[all …]
/external/openscreen/third_party/abseil/src/absl/base/
Dspinlock_test_common.cc49 return SpinLock::EncodeWaitCycles(wait_start_time, wait_end_time); in EncodeWaitCycles()
52 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles()
61 ABSL_CONST_INIT static SpinLock static_cooperative_spinlock(
63 ABSL_CONST_INIT static SpinLock static_noncooperative_spinlock(
82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction()
93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest()
109 static_assert(std::is_trivially_destructible<SpinLock>(), "");
112 TEST(SpinLock, StackNonCooperativeDisablesScheduling) { in TEST() argument
113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST()
119 TEST(SpinLock, StaticNonCooperativeDisablesScheduling) { in TEST() argument
[all …]
/external/libtextclassifier/abseil-cpp/absl/base/
Dspinlock_test_common.cc49 return SpinLock::EncodeWaitCycles(wait_start_time, wait_end_time); in EncodeWaitCycles()
52 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles()
61 ABSL_CONST_INIT static SpinLock static_cooperative_spinlock(
63 ABSL_CONST_INIT static SpinLock static_noncooperative_spinlock(
82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction()
93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest()
109 static_assert(std::is_trivially_destructible<SpinLock>(), "");
112 TEST(SpinLock, StackNonCooperativeDisablesScheduling) { in TEST() argument
113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST()
119 TEST(SpinLock, StaticNonCooperativeDisablesScheduling) { in TEST() argument
[all …]
/external/abseil-cpp/absl/base/
Dspinlock_test_common.cc47 return SpinLock::EncodeWaitCycles(wait_start_time, wait_end_time); in EncodeWaitCycles()
50 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles()
59 static SpinLock static_spinlock(base_internal::kLinkerInitialized);
60 static SpinLock static_cooperative_spinlock(
63 static SpinLock static_noncooperative_spinlock(
82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction()
93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest()
108 TEST(SpinLock, StackNonCooperativeDisablesScheduling) { in TEST() argument
109 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST()
115 TEST(SpinLock, StaticNonCooperativeDisablesScheduling) { in TEST() argument
[all …]
/external/webrtc/third_party/abseil-cpp/absl/base/
Dspinlock_test_common.cc47 return SpinLock::EncodeWaitCycles(wait_start_time, wait_end_time); in EncodeWaitCycles()
50 return SpinLock::DecodeWaitCycles(lock_value); in DecodeWaitCycles()
59 static SpinLock static_spinlock(base_internal::kLinkerInitialized);
60 static SpinLock static_cooperative_spinlock(
63 static SpinLock static_noncooperative_spinlock(
82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction()
93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest()
108 TEST(SpinLock, StackNonCooperativeDisablesScheduling) { in TEST() argument
109 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST()
115 TEST(SpinLock, StaticNonCooperativeDisablesScheduling) { in TEST() argument
[all …]
/external/pdfium/third_party/base/allocator/partition_allocator/
Dspin_lock.h24 class BASE_EXPORT SpinLock {
26 constexpr SpinLock() = default;
27 ~SpinLock() = default;
28 using Guard = std::lock_guard<SpinLock>;
Drandom.cc24 subtle::SpinLock lock;
50 subtle::SpinLock::Guard guard(x->lock); in GetRandomContext()
83 subtle::SpinLock::Guard guard(x->lock); in RandomValue()
89 subtle::SpinLock::Guard guard(x->lock); in SetMmapSeedForTesting()
Dpage_allocator.cc37 subtle::SpinLock* GetReserveLock() { in GetReserveLock()
38 static subtle::SpinLock* s_reserveLock = nullptr; in GetReserveLock()
40 s_reserveLock = new subtle::SpinLock(); in GetReserveLock()
226 subtle::SpinLock::Guard guard(*GetReserveLock()); in ReserveAddressSpace()
244 subtle::SpinLock::Guard guard(*GetReserveLock()); in ReleaseReservation()
/external/llvm/test/CodeGen/Thumb2/
D2010-01-06-TailDuplicateLabels.ll8 %struct.SpinLock = type { %struct.PlatformMutex }
16 … = internal global %struct.SpinLock { %struct.PlatformMutex { i32 850045863, [40 x i8] zeroinitial…
22 …ex_lock(%struct.PlatformMutex* getelementptr inbounds (%struct.SpinLock, %struct.SpinLock* @_ZN3WT…
57 …_unlock(%struct.PlatformMutex* getelementptr inbounds (%struct.SpinLock, %struct.SpinLock* @_ZN3WT…
/external/llvm-project/llvm/test/CodeGen/Thumb2/
D2010-01-06-TailDuplicateLabels.ll8 %struct.SpinLock = type { %struct.PlatformMutex }
16 … = internal global %struct.SpinLock { %struct.PlatformMutex { i32 850045863, [40 x i8] zeroinitial…
22 …ex_lock(%struct.PlatformMutex* getelementptr inbounds (%struct.SpinLock, %struct.SpinLock* @_ZN3WT…
57 …_unlock(%struct.PlatformMutex* getelementptr inbounds (%struct.SpinLock, %struct.SpinLock* @_ZN3WT…

12345