/llvm-project/clang/test/Analysis/Inputs/ |
H A D | system-header-simulator-for-pthread-lock.h | 8 } pthread_mutex_t; typedef 22 typedef pthread_mutex_t lck_mtx_t; 25 extern void fake_system_function_that_takes_a_mutex(pthread_mutex_t *mtx); 27 extern int pthread_mutex_lock(pthread_mutex_t *); 28 extern int pthread_mutex_unlock(pthread_mutex_t *); 29 extern int pthread_mutex_trylock(pthread_mutex_t *); 30 extern int pthread_mutex_destroy(pthread_mutex_t *); 31 extern int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr);
|
H A D | std-c-library-functions-POSIX.h | 37 } pthread_mutex_t; typedef 194 int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); 195 int pthread_mutex_destroy(pthread_mutex_t *mutex); 196 int pthread_mutex_lock(pthread_mutex_t *mutex); 197 int pthread_mutex_trylock(pthread_mutex_t *mutex); 198 int pthread_mutex_unlock(pthread_mutex_t *mutex);
|
/llvm-project/clang/test/Modules/ |
H A D | merge-name-for-linkage.cpp | 4 typedef union {} pthread_mutex_t; typedef 5 typedef pthread_mutex_t pthread_mutex_t; typedef 7 pthread_mutex_t x; 9 pthread_mutex_t y;
|
H A D | merge-anon-in-extern_c.cpp | 10 typedef union { bool b; } pthread_mutex_t; 15 typedef union { bool b; } pthread_mutex_t; 18 const pthread_mutex_t *m;
|
/llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_posix_util.h | 53 pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); 54 extern "C" int __interceptor_pthread_mutex_lock(pthread_mutex_t *mutex); 55 extern "C" int __interceptor_pthread_mutex_unlock(pthread_mutex_t *mutex); 56 extern "C" int __interceptor_pthread_mutex_destroy(pthread_mutex_t *mutex); 57 extern "C" int __interceptor_pthread_mutex_trylock(pthread_mutex_t *mutex); 73 pthread_mutex_t *mutex);
|
H A D | tsan_posix.cpp | 20 pthread_mutex_t *mtx; 23 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt) in thread_key() 57 pthread_mutex_t mtx; in TEST() 105 pthread_mutex_t m;
|
H A D | tsan_test_util_posix.cpp | 49 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in TestMutexBeforeInit() 102 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init() 117 pthread_mutex_t tmp = PTHREAD_MUTEX_INITIALIZER; in StaticInit() 125 CHECK_EQ(__interceptor_pthread_mutex_destroy((pthread_mutex_t*)mtx_), 0); in Destroy() 137 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock() 149 return __interceptor_pthread_mutex_trylock((pthread_mutex_t*)mtx_) == 0; in TryLock() 162 CHECK_EQ(__interceptor_pthread_mutex_unlock((pthread_mutex_t*)mtx_), 0); in Unlock()
|
/llvm-project/lldb/tools/debugserver/source/ |
H A D | PThreadMutex.h | 38 Locker(pthread_mutex_t *mutex, const char *function, const char *file, 49 Locker(pthread_mutex_t *mutex) : m_pMutex(mutex) { Lock(); } 66 void Reset(pthread_mutex_t *pMutex = NULL) { 71 pthread_mutex_t *m_pMutex; 109 pthread_mutex_t *Mutex() { return &m_mutex; } in Mutex() 116 pthread_mutex_t m_mutex;
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/ |
H A D | non-copyable-objects.c | 5 typedef int pthread_mutex_t; typedef 10 void h(pthread_mutex_t m); 34 pthread_mutex_t m; // ok in func() 40 pthread_mutex_t *m1 = &m; // ok in func()
|
/llvm-project/compiler-rt/test/tsan/ |
H A D | mutex_lock_destroyed.cpp | 13 pthread_mutex_t *m = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in main()
|
H A D | race_on_mutex2.c | 5 pthread_mutex_lock((pthread_mutex_t*)x); in Thread() 6 pthread_mutex_unlock((pthread_mutex_t*)x); in Thread() 13 pthread_mutex_t Mtx; in main()
|
H A D | suppressions_mutex.cpp | 4 void __attribute__((noinline)) suppress_this(pthread_mutex_t *mu) { in suppress_this() 9 pthread_mutex_t mu; in main()
|
H A D | bench_local_mutex.cpp | 9 pthread_mutex_t *mtx; 20 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx)); in bench()
|
H A D | mutexset8.cpp | 5 pthread_mutex_t *mtx; 30 mtx = new pthread_mutex_t; in main()
|
H A D | mutexset7.cpp | 15 pthread_mutex_t *mtx = new pthread_mutex_t; in Thread2()
|
H A D | cond_cancel.c | 15 pthread_mutex_t m; 21 pthread_mutex_unlock((pthread_mutex_t*)arg); in my_cleanup()
|
H A D | mutexset4.cpp | 5 pthread_mutex_t mtx1; 6 pthread_mutex_t mtx2;
|
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | pthread_mutex.cpp | 13 extern "C" int __pthread_mutex_lock(pthread_mutex_t *__mutex); 14 extern "C" int __pthread_mutex_unlock(pthread_mutex_t *__mutex); 22 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
|
/llvm-project/clang/test/Analysis/ |
H A D | pthreadlock.c | 7 pthread_mutex_t mtx1, mtx2; 8 pthread_mutex_t *pmtx; 224 void escape_mutex(pthread_mutex_t *m); 226 pthread_mutex_t local_mtx; in ok30() 236 pthread_mutex_t local_mtx; in ok31() 329 bad11_sub(pthread_mutex_t *lock) in bad11_sub() 517 void nocrash1(pthread_mutex_t *mutex) { in nocrash1()
|
H A D | block-in-critical-section.cpp | 38 struct pthread_mutex_t; 39 int pthread_mutex_lock(pthread_mutex_t *mutex); 40 int pthread_mutex_trylock(pthread_mutex_t *mutex); 41 int pthread_mutex_unlock(pthread_mutex_t *mutex); 75 void testBlockInCriticalSectionWithPthreadMutex(pthread_mutex_t *mutex) { in testBlockInCriticalSectionWithPthreadMutex() 296 void testTrylockCurrentlyFalsePositive(pthread_mutex_t *m) { in testTrylockCurrentlyFalsePositive()
|
/llvm-project/libc/test/integration/src/pthread/ |
H A D | pthread_mutex_test.cpp | 25 pthread_mutex_t mutex; 74 pthread_mutex_t start_lock, step_lock; 134 static pthread_mutex_t multiple_waiter_lock; 135 static pthread_mutex_t counter_lock;
|
/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_wrappers.cpp | 170 int(pthread_cond_t *, pthread_mutex_t *)) 171 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_lock, int(pthread_mutex_t *)) 172 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_unlock, int(pthread_mutex_t *)) 173 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_destroy, int(pthread_mutex_t *)) 175 int(pthread_mutex_t *,
|
/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cpp | 43 INTERCEPTOR(int, pthread_mutex_destroy, pthread_mutex_t *m) { in INTERCEPTOR() 49 INTERCEPTOR(int, pthread_mutex_lock, pthread_mutex_t *m) { in INTERCEPTOR() 57 INTERCEPTOR(int, pthread_mutex_trylock, pthread_mutex_t *m) { in INTERCEPTOR() 65 INTERCEPTOR(int, pthread_mutex_unlock, pthread_mutex_t *m) { in INTERCEPTOR() 183 INTERCEPTOR(int, pthread_cond_wait, pthread_cond_t *c, pthread_mutex_t *m) { in INTERCEPTOR() 193 INTERCEPTOR(int, pthread_cond_timedwait, pthread_cond_t *c, pthread_mutex_t *m, in INTERCEPTOR()
|
/llvm-project/libc/src/pthread/ |
H A D | pthread_mutex_init.cpp | 20 static_assert(sizeof(Mutex) <= sizeof(pthread_mutex_t), 21 "The public pthread_mutex_t type cannot accommodate the internal " 25 (pthread_mutex_t * m,
|
/llvm-project/compiler-rt/lib/safestack/ |
H A D | safestack_util.h | 42 explicit MutexLock(pthread_mutex_t &mutex) : mutex_(&mutex) { 48 pthread_mutex_t *mutex_ = nullptr;
|