Home
last modified time | relevance | path

Searched refs:SpinMutex (Results 1 – 25 of 33) sorted by relevance

12

/external/rust/crates/spin/src/mutex/
Dspin.rs55 pub struct SpinMutex<T: ?Sized> { struct
69 unsafe impl<T: ?Sized + Send> Sync for SpinMutex<T> {} argument
70 unsafe impl<T: ?Sized + Send> Send for SpinMutex<T> {} implementation
72 impl<T> SpinMutex<T> { impl
89 pub const fn new(user_data: T) -> SpinMutex<T> { in new()
90 SpinMutex { in new()
108 let SpinMutex { data, .. } = self; in into_inner() localVariable
113 impl<T: ?Sized> SpinMutex<T> { implementation
217 impl<T: ?Sized + fmt::Debug> fmt::Debug for SpinMutex<T> { implementation
228 impl<T: ?Sized + Default> Default for SpinMutex<T> { implementation
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cpp102 TEST(SanitizerCommon, SpinMutex) { in TEST() argument
103 SpinMutex mtx; in TEST()
105 TestData<SpinMutex> data(&mtx); in TEST()
108 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST()
114 SpinMutex mtx; in TEST()
116 TestData<SpinMutex> data(&mtx); in TEST()
119 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc103 TEST(SanitizerCommon, SpinMutex) { in TEST() argument
104 SpinMutex mtx; in TEST()
106 TestData<SpinMutex> data(&mtx); in TEST()
109 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST()
115 SpinMutex mtx; in TEST()
117 TestData<SpinMutex> data(&mtx); in TEST()
120 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h63 class SpinMutex : public StaticSpinMutex {
65 SpinMutex() { in SpinMutex() function
70 SpinMutex(const SpinMutex&);
71 void operator=(const SpinMutex&);
Dsanitizer_quarantine.h82 SpinMutex cache_mutex_;
83 SpinMutex recycle_mutex_;
Dsanitizer_deadlock_detector1.cc37 SpinMutex mtx;
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h62 class SpinMutex : public StaticSpinMutex {
64 SpinMutex() { in SpinMutex() function
69 SpinMutex(const SpinMutex&);
70 void operator=(const SpinMutex&);
Dsanitizer_deadlock_detector1.cpp36 SpinMutex mtx;
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutex_test.cc117 SpinMutex mtx; in TEST()
118 TestData<SpinMutex> data(&mtx); in TEST()
121 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); in TEST()
/external/llvm-project/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutex_test.cpp116 SpinMutex mtx; in TEST()
117 TestData<SpinMutex> data(&mtx); in TEST()
120 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); in TEST()
/external/llvm-project/compiler-rt/lib/xray/
Dxray_init.cpp52 SpinMutex XRayInstrMapMutex;
59 SpinMutex XRayInitMutex;
Dxray_buffer_queue.h140 SpinMutex Mutex;
Dxray_log_interface.cpp21 static SpinMutex XRayImplMutex;
Dxray_allocator.h178 SpinMutex Mutex{};
Dxray_interface.cpp37 extern __sanitizer::SpinMutex XRayInstrMapMutex;
Dxray_profiling.cpp40 static SpinMutex ProfilerOptionsMutex;
/external/rust/crates/spin/
DCHANGELOG.md34 - `Mutex::is_locked`/`SpinMutex::is_locked`/`TicketMutex::is_locked`
41 - Improved the performance of `SpinMutex` by relaxing unnecessarily conservative
/external/llvm-project/compiler-rt/lib/hwasan/
Dhwasan_thread_list.h185 SpinMutex list_mutex_;
188 SpinMutex stats_mutex_;
/external/rust/crates/spin/src/
Dmutex.rs32 type InnerMutex<T> = SpinMutex<T>;
90 inner: SpinMutex<T>,
/external/rust/crates/spin/patches/
Ddisable_panic_tests.patch11 let arc = Arc::new(SpinMutex::new(1));
/external/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h96 SpinMutex mtx_;
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h96 SpinMutex mtx_;
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc111 TEST(ThreadSanitizer, SpinMutex) { in TEST() argument
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cpp110 TEST(ThreadSanitizer, SpinMutex) { in TEST() argument
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc94 static SpinMutex fallback_mutex;

12