Home
last modified time | relevance | path

Searched refs:mtx_ (Results 1 – 9 of 9) sorted by relevance

/openbsd/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util_posix.cpp102 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init()
105 CHECK_EQ(pthread_spin_init((pthread_spinlock_t*)mtx_, 0), 0); in Init()
118 memcpy(mtx_, &tmp, sizeof(tmp)); in StaticInit()
128 CHECK_EQ(pthread_spin_destroy((pthread_spinlock_t*)mtx_), 0); in Destroy()
137 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock()
140 CHECK_EQ(pthread_spin_lock((pthread_spinlock_t*)mtx_), 0); in Lock()
149 return __interceptor_pthread_mutex_trylock((pthread_mutex_t*)mtx_) == 0; in TryLock()
152 return pthread_spin_trylock((pthread_spinlock_t*)mtx_) == 0; in TryLock()
162 CHECK_EQ(__interceptor_pthread_mutex_unlock((pthread_mutex_t*)mtx_), 0); in Unlock()
165 CHECK_EQ(pthread_spin_unlock((pthread_spinlock_t*)mtx_), 0); in Unlock()
[all …]
H A Dtsan_test_util.h65 void *mtx_[128];
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cpp27 : mtx_(mtx) { in TestData()
33 Lock l(mtx_); in Write()
36 mtx_->CheckLocked(); in Write()
43 if (!mtx_->TryLock()) in TryWrite()
47 mtx_->CheckLocked(); in TryWrite()
51 mtx_->Unlock(); in TryWrite()
55 ReadLock l(mtx_); in Read()
58 mtx_->CheckReadLocked(); in Read()
76 MutexType *mtx_; member in __sanitizer::TestData
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stack_store.h93 mutable StaticSpinMutex mtx_; variable
100 State state SANITIZER_GUARDED_BY(mtx_);
112 void Lock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS { mtx_.Lock(); } in Lock()
113 void Unlock() SANITIZER_NO_THREAD_SAFETY_ANALYSIS { mtx_.Unlock(); } in Unlock()
H A Dsanitizer_thread_registry.h98 void Lock() SANITIZER_ACQUIRE() { mtx_.Lock(); } in Lock()
99 void CheckLocked() const SANITIZER_CHECK_LOCKED() { mtx_.CheckLocked(); } in CheckLocked()
100 void Unlock() SANITIZER_RELEASE() { mtx_.Unlock(); } in Unlock()
147 Mutex mtx_; variable
H A Dsanitizer_stack_store.cpp132 SpinMutexLock l(&mtx_); in Create()
254 SpinMutexLock l(&mtx_); in GetOrUnpack()
305 SpinMutexLock l(&mtx_); in Pack()
375 SpinMutexLock l(&mtx_); in IsPacked()
H A Dsanitizer_thread_registry.cpp113 mtx_(MutexThreadRegistry), in ThreadRegistry()
/openbsd/gnu/llvm/libcxxabi/src/
H A Dfallback_malloc.cpp45 mutexor(std::__libcpp_mutex_t* m) : mtx_(m) { in mutexor()
46 std::__libcpp_mutex_lock(mtx_); in mutexor()
48 ~mutexor() { std::__libcpp_mutex_unlock(mtx_); } in ~mutexor()
57 std::__libcpp_mutex_t* mtx_; member in __anon31f0af900111::mutexor
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_dense_alloc.h102 Lock lock(&mtx_); in ForEach()
111 Mutex mtx_; variable
171 Lock lock(&mtx_); in AllocSuperBlock()