Home
last modified time | relevance | path

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

12345678910>>...56

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-bad-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()
Dbugprone-bad-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()
Dbugprone-bad-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()
/external/llvm-project/clang/test/CodeGen/
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()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/
Dstress.c132 ret = pthread_kill(*(pthread_t *) arg, SIGABRT); in flooder_1()
148 ret = pthread_kill(*(pthread_t *) arg, SIGBUS); in flooder_2()
196 ret = pthread_kill(*(pthread_t *) arg, SIGILL); in sync_send()
223 pthread_t fl_rec; in main()
224 pthread_t fl_snd1, fl_snd2; in main()
227 pthread_t sy_rec; in main()
228 pthread_t sy_snd; in main()
/external/llvm-project/lldb/test/API/functionalities/tsan/thread_numbers/
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()
/external/libaom/libaom/aom_util/
Daom_thread.h34 typedef HANDLE pthread_t; typedef
58 static INLINE int pthread_create(pthread_t *const thread, const void *attr, in pthread_create()
68 *thread = (pthread_t)_beginthreadex(NULL, /* void *security */ in pthread_create()
78 static INLINE int pthread_join(pthread_t thread, void **value_ptr) { in pthread_join()
149 #define pthread_t TID
176 static INLINE int pthread_create(pthread_t *const thread, const void *attr,
186 tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);
196 static INLINE int pthread_join(pthread_t thread, void **value_ptr) {
/external/libmpeg2/common/
Dithread.c62 return sizeof(pthread_t); in ithread_get_handle_size()
73 return pthread_create((pthread_t *)thread_handle, NULL,(void *(*)(void *)) strt, argument); in ithread_create()
78 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
162 pthread_t cur_thread = pthread_self(); in ithread_set_affinity()
/external/llvm-project/openmp/runtime/test/
Domp_testsuite.h26 typedef HANDLE pthread_t; typedef
44 static int pthread_create(pthread_t *thread, void *attr, in pthread_create()
46 pthread_t pthread; in pthread_create()
60 static int pthread_join(pthread_t thread, void **retval) { in pthread_join()
/external/libavc/common/
Dithread.c68 return sizeof(pthread_t); in ithread_get_handle_size()
80 return pthread_create((pthread_t *)thread_handle, NULL,(void *(*)(void *)) strt, argument); in ithread_create()
86 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
180 pthread_t cur_thread = pthread_self(); in ithread_set_affinity()
/external/libhevc/common/
Dithread.c56 return sizeof(pthread_t); in ithread_get_handle_size()
66 … return pthread_create((pthread_t *)thread_handle, attribute, (void * (*)(void *))strt, argument); in ithread_create()
71 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
155 pthread_t cur_thread = pthread_self(); in ithread_set_affinity()
/external/llvm-project/compiler-rt/test/tsan/
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()
Dfd_tid_recycled.cpp30 pthread_t t_create; in main()
35 pthread_t t_dummy; in main()
40 pthread_t t[2]; in main()
/external/compiler-rt/test/tsan/
Dsignal_recursive.cc63 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()
Dfd_tid_recycled.cc30 pthread_t t_create; in main()
35 pthread_t t_dummy; in main()
40 pthread_t t[2]; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
D6-1.c35 pthread_t child_thread; in main()
36 pthread_t invalid_tid; in main()
53 memcpy(&invalid_tid, &child_thread, sizeof(pthread_t)); in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dpthread_mutex.cpp28 pthread_t threads[2] = {}; in main()
29 for (pthread_t &t : threads) in main()
31 for (pthread_t &t : threads) in main()
/external/ltp/testcases/kernel/sched/cfs-scheduler/
Dhackbench.c185 pthread_t create_worker(void *ctx, void *(*func) (void *)) in create_worker()
188 pthread_t childid; in create_worker()
202 return (pthread_t) 0; in create_worker()
221 void reap_worker(pthread_t id) in reap_worker()
238 static unsigned int group(pthread_t * pth, in group()
300 pthread_t *pth_tab; in main()
328 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in main()
/external/squashfs-tools/squashfs-tools/
Drestore.c49 extern pthread_t reader_thread, writer_thread, main_thread;
50 extern pthread_t *deflator_thread, *frag_deflator_thread, *frag_thread;
57 static pthread_t restore_thread;
151 pthread_t *init_restore_thread() in init_restore_thread()
/external/libvpx/libvpx/vpx_util/
Dvpx_thread.h34 typedef HANDLE pthread_t; typedef
74 static INLINE int pthread_create(pthread_t *const thread, const void *attr, in pthread_create()
84 *thread = (pthread_t)_beginthreadex(NULL, /* void *security */ in pthread_create()
94 static INLINE int pthread_join(pthread_t thread, void **value_ptr) { in pthread_join()
228 #define pthread_t TID
255 static INLINE int pthread_create(pthread_t *const thread, const void *attr,
265 tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);
275 static INLINE int pthread_join(pthread_t thread, void **value_ptr) {
/external/compiler-rt/lib/tsan/benchmarks/
Dvts_many_threads_bench.cc93 pthread_t *t = new pthread_t[n_threads]; in main()
95 pthread_t *g_t = new pthread_t[n_garbage_threads]; in main()
/external/llvm-project/compiler-rt/lib/tsan/benchmarks/
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()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_linux_test.cpp65 pthread_t pthread_id; in SetUp()
83 void SpawnTidReporter(pthread_t *pthread_id, tid_t *tid);
87 std::vector<pthread_t> pthread_ids_;
109 void ThreadListerTest::SpawnTidReporter(pthread_t *pthread_id, tid_t *tid) { in SpawnTidReporter()
167 pthread_t extra_pthread_id; in TEST_F()
199 pthread_t tid; in TEST()
218 pthread_t tid; in TEST()
/external/autotest/client/tests/hackbench/src/
Dhackbench.c212 pthread_t create_worker(void *ctx, void *(*func)(void *)) in create_worker()
215 pthread_t childid; in create_worker()
228 return (pthread_t) 0; in create_worker()
246 void reap_worker(pthread_t id) in reap_worker()
263 static unsigned int group(pthread_t *pth, in group()
321 pthread_t *pth_tab; in main()
349 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in main()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_linux_test.cc65 pthread_t pthread_id; in SetUp()
83 void SpawnTidReporter(pthread_t *pthread_id, pid_t *tid);
87 std::vector<pthread_t> pthread_ids_;
109 void ThreadListerTest::SpawnTidReporter(pthread_t *pthread_id, in SpawnTidReporter()
173 pthread_t extra_pthread_id; in TEST_F()
207 pthread_t tid; in TEST()
226 pthread_t tid; in TEST()

12345678910>>...56