Home
last modified time | relevance | path

Searched refs:pthread_t (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dbad-signal-to-kill-thread.cpp5 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 Dbad-signal-to-kill-thread-sigterm-not-a-literal.cpp4 using pthread_t = int; typedef
5 int pthread_kill(pthread_t thread, int sig);
8 pthread_t thread; in func()
H A Dbad-signal-to-kill-thread-undef-sigterm.cpp5 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 Dcallback_pthread_create.c17 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 Dmain.c29 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 Ddyld-insert-libraries.c27 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 Dpthread_self.cpp19 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 Dpthread_equal.cpp19 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 Dpthread_equal.h17 int pthread_equal(pthread_t lhs, pthread_t rhs);
H A Dpthread_detach.cpp19 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 Dsignal_recursive.cpp63 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 Dfd_tid_recycled.cpp30 pthread_t t_create; in main()
35 pthread_t t_dummy; in main()
40 pthread_t t[2]; in main()
H A Dbench_threads.cpp16 pthread_t th; in thread()
28 pthread_t th[kBatch]; in bench()
36 pthread_t th[kLiveThreads]; in bench()
H A Dbench.h34 pthread_t *th = (pthread_t*)malloc(nth * sizeof(pthread_t)); in start_thread_group()
H A Dfork_multithreaded.cpp21 pthread_t th0[kSleeperThreads]; in main()
25 pthread_t th1[kNopThreads]; in main()
38 pthread_t th2[kChildThreads]; in main()
H A Dpthread_atfork_deadlock3.c21 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 Dmmap_stress.cpp28 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 Domp_testsuite.h80 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 Dvts_many_threads_bench.cpp93 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 Dpthread_mutex.cpp33 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 Dsanitizer_mutex_test.cpp131 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 Dsanitizer_pthread_wrappers.h28 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 Dsanitizer_linux_test.cpp64 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 Dtsan_posix_util.h45 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 Dasan_mac_test.cpp28 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()

12345678910>>...18