/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | bad-signal-to-kill-thread.cpp | 5 using pthread_t = int; typedef 8 int pthread_create(pthread_t *thread, const pthread_attr_t *attr, 11 int pthread_kill(pthread_t thread, int sig); 13 int pthread_cancel(pthread_t thread); 19 pthread_t thread; in main()
|
H A D | bad-signal-to-kill-thread-sigterm-not-a-literal.cpp | 4 using pthread_t = int; typedef 5 int pthread_kill(pthread_t thread, int sig); 8 pthread_t thread; in func()
|
H A D | bad-signal-to-kill-thread-undef-sigterm.cpp | 5 using pthread_t = int; typedef 6 int pthread_kill(pthread_t thread, int sig); 9 pthread_t thread; in func()
|
/llvm-project/clang/test/CodeGen/ |
H A D | callback_pthread_create.c | 17 typedef __darwin_pthread_t pthread_t; typedef 20 int pthread_create(pthread_t *, const pthread_attr_t *, 35 pthread_t MyFirstThread; in foo() 38 pthread_t MySecondThread; in foo()
|
/llvm-project/lldb/test/API/functionalities/tsan/thread_numbers/ |
H A D | main.c | 29 pthread_t t; in main() 34 pthread_t t1; in main() 38 pthread_t t; in main() 43 pthread_t t2; in main()
|
/llvm-project/compiler-rt/test/tsan/Darwin/ |
H A D | dyld-insert-libraries.c | 27 pthread_t thread, void *addr, 33 static void pthread_introspection_hook(unsigned int event, pthread_t thread, void *addr, size_t siz… in pthread_introspection_hook() 34 pthread_t self; in pthread_introspection_hook() 97 pthread_t t; in main()
|
/llvm-project/libc/src/pthread/ |
H A D | pthread_self.cpp | 19 static_assert(sizeof(pthread_t) == sizeof(LIBC_NAMESPACE::Thread), 20 "Mismatch between pthread_t and internal Thread."); 22 LLVM_LIBC_FUNCTION(pthread_t, pthread_self, ()) { 23 pthread_t th;
|
H A D | pthread_equal.cpp | 19 static_assert(sizeof(pthread_t) == sizeof(LIBC_NAMESPACE::Thread), 20 "Mismatch between pthread_t and internal Thread."); 22 LLVM_LIBC_FUNCTION(int, pthread_equal, (pthread_t lhs, pthread_t rhs)) {
|
H A D | pthread_equal.h | 17 int pthread_equal(pthread_t lhs, pthread_t rhs);
|
H A D | pthread_detach.cpp | 19 static_assert(sizeof(pthread_t) == sizeof(LIBC_NAMESPACE::Thread), 20 "Mismatch between pthread_t and internal Thread."); 22 LLVM_LIBC_FUNCTION(int, pthread_detach, (pthread_t th)) {
|
/llvm-project/compiler-rt/test/tsan/ |
H A D | signal_recursive.cpp | 63 static void StopWorld(pthread_t thread) { in StopWorld() 73 static void StartWorld(pthread_t thread) { in StartWorld() 83 static void CollectGarbage(pthread_t thread) { in CollectGarbage() 113 pthread_t busy_thread; in main()
|
H A D | fd_tid_recycled.cpp | 30 pthread_t t_create; in main() 35 pthread_t t_dummy; in main() 40 pthread_t t[2]; in main()
|
H A D | bench_threads.cpp | 16 pthread_t th; in thread() 28 pthread_t th[kBatch]; in bench() 36 pthread_t th[kLiveThreads]; in bench()
|
H A D | bench.h | 34 pthread_t *th = (pthread_t*)malloc(nth * sizeof(pthread_t)); in start_thread_group()
|
H A D | fork_multithreaded.cpp | 21 pthread_t th0[kSleeperThreads]; in main() 25 pthread_t th1[kNopThreads]; in main() 38 pthread_t th2[kChildThreads]; in main()
|
H A D | pthread_atfork_deadlock3.c | 21 pthread_kill((pthread_t)main, SIGPROF); in worker() 25 pthread_kill((pthread_t)main, SIGPROF); in worker() 65 pthread_t t; in main()
|
H A D | mmap_stress.cpp | 28 pthread_t th[4]; in Worker1() 42 pthread_t th[4]; in Worker() 55 pthread_t th[4]; in main()
|
/llvm-project/openmp/runtime/test/ |
H A D | omp_testsuite.h | 80 typedef HANDLE pthread_t; typedef 98 static int pthread_create(pthread_t *thread, void *attr, in pthread_create() 100 pthread_t pthread; in pthread_create() 115 static int pthread_join(pthread_t thread, void **retval) { in pthread_join()
|
/llvm-project/compiler-rt/lib/tsan/benchmarks/ |
H A D | vts_many_threads_bench.cpp | 93 pthread_t *t = new pthread_t[n_threads]; in main() 95 pthread_t *g_t = new pthread_t[n_garbage_threads]; in main()
|
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | pthread_mutex.cpp | 33 pthread_t threads[2] = {}; in main() 34 for (pthread_t &t : threads) in main() 36 for (pthread_t &t : threads) in main()
|
/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_mutex_test.cpp | 131 pthread_t threads[kThreads]; in TEST() 142 pthread_t threads[kThreads]; in TEST() 152 pthread_t threads[kThreads]; in TEST() 161 pthread_t threads[kThreads]; in TEST() 189 pthread_t thread; in TEST()
|
H A D | sanitizer_pthread_wrappers.h | 28 typedef HANDLE pthread_t; typedef 43 inline void PTHREAD_CREATE(pthread_t *thread, void *attr, in PTHREAD_CREATE() 55 inline void PTHREAD_JOIN(pthread_t thread, void **value_ptr) { in PTHREAD_JOIN()
|
H A D | sanitizer_linux_test.cpp | 64 pthread_t pthread_id; in SetUp() 82 void SpawnTidReporter(pthread_t *pthread_id, tid_t *tid); 86 std::vector<pthread_t> pthread_ids_; 108 void ThreadListerTest::SpawnTidReporter(pthread_t *pthread_id, tid_t *tid) { 168 pthread_t extra_pthread_id; in TEST_F() 204 pthread_t tid; in TEST()
|
/llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_posix_util.h | 45 extern "C" int __interceptor_pthread_create(pthread_t *thread, 49 extern "C" int __interceptor_pthread_join(pthread_t thread, void **value_ptr); 50 extern "C" int __interceptor_pthread_detach(pthread_t thread);
|
/llvm-project/compiler-rt/lib/asan/tests/ |
H A D | asan_mac_test.cpp | 28 pthread_t child; in CFAllocator_DoubleFreeOnPthread() 54 pthread_t th1, th2; in CFAllocator_PassMemoryToAnotherThread() 175 pthread_t workers[kNumWorkers], forker; in TEST() 196 pthread_t th; in TEST()
|