Home
last modified time | relevance | path

Searched refs:pthread_create (Results 1 – 25 of 632) sorted by relevance

12345678910>>...26

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_pthrd_test.cpp85 EXPECT_EQ(0, pthread_create(&thread, nullptr, PthreadNameNp, nullptr));
97 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr);
122 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr);
184 EXPECT_EQ(0, pthread_create(&signalThread, nullptr, WaitSignalHandler, &receivedPthreadSignal));
201 EXPECT_EQ(0, pthread_create(&thread, nullptr, ReturnFunc, getRes));
225 EXPECT_EQ(0, pthread_create(&thread, nullptr, ThreadStr, &msg));
297 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr);
337 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr);
353 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr);
391 EXPECT_EQ(0, pthread_create(&thread, nullptr, BeginLoop, nullptr));
[all …]
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_rwlock_rdlock.c51 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockNoOutRealTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0010()
52 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockNoOutRealTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0010()
95 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockOutRealTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0020()
96 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockOutRealTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0020()
136 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockNoOutMonoTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0030()
137 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockNoOutMonoTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0030()
180 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockOutMonoTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0040()
181 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockOutMonoTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0040()
220 TEST(pthread_create(&tid[0], NULL, PthreadTimedRdlockMonoNPNoOutW1, NULL) == 0); in pthread_rwlock_timedrdlock_monotonic_np_0010()
221 TEST(pthread_create(&tid[1], NULL, PthreadTimedRdlockMonoNPNoOutR2, NULL) == 0); in pthread_rwlock_timedrdlock_monotonic_np_0010()
[all …]
Dpthread_rwlock_wrlock.c233 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeWait1, NULL), 0); in pthread_rwlock_timedwrlock_0050()
234 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeWait2, NULL), 0); in pthread_rwlock_timedwrlock_0050()
251 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeOut1, NULL), 0); in pthread_rwlock_timedwrlock_0060()
252 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeOut2, NULL), 0); in pthread_rwlock_timedwrlock_0060()
269 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockMonotonicTimeOut1, NULL), 0); in pthread_rwlock_timedwrlock_0070()
270 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockMonotonicTimeOut2, NULL), 0); in pthread_rwlock_timedwrlock_0070()
287 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockMonotonicTimeWait1, NULL), 0); in pthread_rwlock_timedwrlock_0080()
288 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockMonotonicTimeWait2, NULL), 0); in pthread_rwlock_timedwrlock_0080()
305 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockMonotonicTime1, NULL), 0); in pthread_rwlock_timedwrlock_0090()
306 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockMonotonicTime2, NULL), 0); in pthread_rwlock_timedwrlock_0090()
[all …]
Dpthread_cond_timedwait.c268 EXPECT_EQ(pthread_create(&tid1, NULL, ClockWaitTimedwait1, NULL), 0); in clockwait_timedwait_0010()
269 EXPECT_EQ(pthread_create(&tid2, NULL, ClockWaitTimedwait2, NULL), 0); in clockwait_timedwait_0010()
304 EXPECT_EQ(pthread_create(&tid, NULL, ClockWaitTimeOut, NULL), 0); in clockwait_timedwait_0020()
346 EXPECT_EQ(pthread_create(&tid1, NULL, ClockWaitTimedwait3, NULL), 0); in clockwait_timedwait_0030()
347 EXPECT_EQ(pthread_create(&tid2, NULL, ClockWaitTimedwait4, NULL), 0); in clockwait_timedwait_0030()
382 EXPECT_EQ(pthread_create(&tid, NULL, ClockWaitTimeOut2, NULL), 0); in clockwait_timedwait_0040()
444 EXPECT_EQ(pthread_create(&tid1, NULL, ClockWaitTimeMismatch1, NULL), 0); in clockwait_timedwait_0050()
445 EXPECT_EQ(pthread_create(&tid2, NULL, ClockWaitTimeMismatch2, NULL), 0); in clockwait_timedwait_0050()
446 EXPECT_EQ(pthread_create(&tid, NULL, ClockWaitTimeMismatch, NULL), 0); in clockwait_timedwait_0050()
485 EXPECT_EQ(pthread_create(&tid, NULL, ClockWaitTimeMismatch3, NULL), 0); in clockwait_timedwait_0060()
[all …]
Dpthread_mutex_ext.c46 TEST(pthread_create(&tid, NULL, PthreadClocklockOutRealTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0010()
78 TEST(pthread_create(&tid, NULL, PthreadClocklockNoOutRealTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0020()
114 TEST(pthread_create(&tid, NULL, PthreadClocklockOutMonoTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0030()
146 TEST(pthread_create(&tid, NULL, PthreadClocklockNoOutMonoTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0040()
186 TEST(pthread_create(&tid, NULL, PthreadClocklockOutRealTime2, (void*)&mtx) == 0); in pthread_mutex_clocklock_0050()
218 TEST(pthread_create(&tid, NULL, PthreadClocklockNoOutMonoTime2, (void*)&mtx) == 0); in pthread_mutex_clocklock_0060()
261 TEST(pthread_create(&tid, NULL, PthreadTimedlockMonotonicNPOut, (void*)&mtx) == 0); in pthread_mutex_timedlock_monotonic_np_0010()
293 TEST(pthread_create(&tid, NULL, PthreadTimedlockMonotonicNPNoOut, (void*)&mtx) == 0); in pthread_mutex_timedlock_monotonic_np_0020()
344 TEST(pthread_create(&tid, NULL, PthreadLockTimeoutNPOut, (void*)&mtx) == 0); in pthread_mutex_lock_timeout_np_0010()
377 TEST(pthread_create(&tid, NULL, PthreadLockTimeoutNPNoOut, (void*)&mtx) == 0); in pthread_mutex_lock_timeout_np_0020()
/third_party/musl/libc-test/src/functional/
Ddl_multithread_test.c43 pthread_create(&thd1, NULL, dl_test, NULL); in main()
44 pthread_create(&thd2, NULL, dl_test, NULL); in main()
45 pthread_create(&thd3, NULL, dl_test, NULL); in main()
46 pthread_create(&thd4, NULL, dl_test, NULL); in main()
47 pthread_create(&thd5, NULL, dl_test, NULL); in main()
Dpthread_cond.c45 TEST(r, pthread_create(&td, 0, start_signal, (void *[]){ &cond, &mtx }), ""); in main()
57 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
58 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
59 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
83 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
84 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
85 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), ""); in main()
Dpthread_cancel.c72 TESTR(r, pthread_create(&td, 0, start_async, &sem1), "failed to create thread"); in main()
80 TESTR(r, pthread_create(&td, 0, start_single, foo), "failed to create thread"); in main()
88 TESTR(r, pthread_create(&td, 0, start_nested, foo), "failed to create thread"); in main()
Dsem_init.c32 T2(r,pthread_create(t, 0, start, s)); in many_waiters()
33 T2(r,pthread_create(t+1, 0, start, s)); in many_waiters()
34 T2(r,pthread_create(t+2, 0, start, s)); in many_waiters()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_create.c46 int32_t ret = pthread_create(&ph, NULL, threadfuncA, NULL); in pthread_create_0100()
60 int32_t ret = pthread_create(&ph, NULL, threadfunc, (char *)(URL)); in pthread_create_0200()
76 int32_t ret = pthread_create(&ph, &atrr, threadfunc, (char *)(URL)); in pthread_create_0300()
104 ret = pthread_create(&ph, &attr, threadfunc, (char *)(URL)); in pthread_create_0400()
122 int32_t ret = pthread_create(&ph, &attr, threadfunc, (char *)(URL)); in pthread_create_0500()
Dpthread_mutex_lock.c72 int32_t ret = pthread_create(&tid1, NULL, threadfuncA, NULL); in pthread_mutex_lock_0100()
87 pthread_create(&tid2, NULL, threadfuncB, NULL); in pthread_mutex_lock_0200()
103 pthread_create(&tid3, NULL, threadfuncC, NULL); in pthread_mutex_lock_0300()
119 pthread_create(&tid4, NULL, threadfuncD, NULL); in pthread_mutex_lock_0400()
Dpthread_mutex_unlock.c54 pthread_create(&tid1, NULL, threadfuncA, NULL); in pthread_mutex_un_lock_0100()
69 pthread_create(&tid2, NULL, threadfuncB, NULL); in pthread_mutex_un_lock_0200()
71 pthread_create(&tid3, NULL, threadfuncC, NULL); in pthread_mutex_un_lock_0200()
Dpthread_equal.c56 result = pthread_create(&pthread1, NULL, threadfuncA, NULL); in pthread_equal_0100()
61 result = pthread_create(&pthread2, NULL, threadfuncB, NULL); in pthread_equal_0100()
86 result = pthread_create(&g_pthd_2, NULL, threadfuncC, NULL); in pthread_equal_0200()
/third_party/musl/libc-test/src/functionalext/supplement/network/
Daccept4.c265 ret = pthread_create(&srv, NULL, ServerTaskOne, NULL); in accept4_0100()
267 ret = pthread_create(&cli, NULL, ClientTask, NULL); in accept4_0100()
288 ret = pthread_create(&srv, NULL, ServerTaskTwo, NULL); in accept4_0200()
290 ret = pthread_create(&cli, NULL, ClientTask, NULL); in accept4_0200()
311 ret = pthread_create(&srv, NULL, ServerTaskThree, NULL); in accept4_0300()
313 ret = pthread_create(&cli, NULL, ClientTask, NULL); in accept4_0300()
348 ret = pthread_create(&srv, NULL, ServerTaskFive, NULL); in accept4_0500()
350 ret = pthread_create(&cli, NULL, ClientTask, NULL); in accept4_0500()
371 ret = pthread_create(&srv, NULL, ServerTaskSix, NULL); in accept4_0600()
373 ret = pthread_create(&cli, NULL, ClientTask, NULL); in accept4_0600()
/third_party/musl/libc-test/src/regression/
Dpthread_cancel-sem_wait.c60 TESTR(r, pthread_create(&td, 0, start_sem_wait, 0), "failed to create thread"); in main()
70 TESTR(r, pthread_create(&td, 0, start_sem_wait, 0), "failed to create thread"); in main()
80 TESTR(r, pthread_create(&td, 0, start_sem_timedwait, 0), "failed to create thread"); in main()
90 TESTR(r, pthread_create(&td, 0, start_sem_timedwait, 0), "failed to create thread"); in main()
100 TESTR(r, pthread_create(&td, 0, start_sem_timedwait_time64, 0), "failed to create thread"); in main()
Dpthread_once-deadlock.c62 T(pthread_create(&t1, 0, start, a1)); in main()
63 T(pthread_create(&t2, 0, start, a2)); in main()
64 T(pthread_create(&t3, 0, start, a3)); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/
Dstress.c254 ret = pthread_create(&fl_rec, NULL, flood_receiver, &flooding); in main()
260 ret = pthread_create(&fl_snd1, NULL, flooder_1, &fl_rec); in main()
266 ret = pthread_create(&fl_snd2, NULL, flooder_2, &fl_rec); in main()
272 ret = pthread_create(&sy_rec, NULL, sync_rec, &synchro); in main()
278 ret = pthread_create(&sy_snd, NULL, sync_send, &sy_rec); in main()
/third_party/ltp/testcases/open_posix_testsuite/functional/mqueues/
Dsend_rev_2.c128 pthread_create(&send1, NULL, (void *)send_1, (void *)&mq1); in main()
129 pthread_create(&send2, NULL, (void *)send_2, (void *)&mq2); in main()
130 pthread_create(&rev1, NULL, (void *)receive_1, (void *)&mq1); in main()
131 pthread_create(&rev2, NULL, (void *)receive_2, (void *)&mq2); in main()
/third_party/musl/Benchmark/musl/
Dlibc_pthread.cpp435 pthread_create(&threadOne, nullptr, ThreadTaskOne, nullptr); in Bm_function_pthread_cond_broadcast()
436 pthread_create(&threadTwo, nullptr, ThreadTaskTwo, nullptr); in Bm_function_pthread_cond_broadcast()
438 pthread_create(&threadThree, nullptr, BroadcastNotifyMutex, &state); in Bm_function_pthread_cond_broadcast()
489 pthread_create(&threadOne, nullptr, ThreadTaskOne, nullptr); in Bm_function_pthread_cond_signal_wait()
530 pthread_create(&thread1, nullptr, GetThreadId, nullptr); in Bm_function_pthread_equal()
531 pthread_create(&thread2, nullptr, GetThreadId, nullptr); in Bm_function_pthread_equal()
551 pthread_create(&thread1, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy()
552 pthread_create(&thread2, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy()
594 pthread_create(&tid, nullptr, Func, &state); in Bm_function_pthread_spin_lock_and_spin_unlock()
622 pthread_create(&tid, nullptr, ThreadFunc, nullptr); in Bm_function_pthread_detach()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
D6-3.c138 ret = pthread_create(&child, &scenarii[sc].ta, in test()
216 ret = pthread_create(&th_work, NULL, test, NULL); in main()
227 ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1); in main()
231 ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2); in main()
/third_party/musl/libc-test/src/functionalext/fortify/
Dpthread_fortify_test.c52 T(pthread_create(&t, 0, pthread_mutex_lock_after_destroyed, a)); in test_pthread_mutex_lock_after_destroyed()
79 T(pthread_create(&t, 0, pthread_mutex_unlock_after_destroyed, a)); in test_pthread_mutex_unlock_after_destroyed()
108 T(pthread_create(&t, 0, pthread_mutex_timedlock_after_destroyed, a)); in test_pthread_mutex_timedlock_after_destroyed()
135 T(pthread_create(&t, 0, pthread_mutex_trylock_after_destroyed, a)); in test_pthread_mutex_trylock_after_destroyed()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D4-2.c264 if ((ret = pthread_create(&th_waiter, NULL, waiter, NULL))) { in main()
268 if ((ret = pthread_create(&th_worker, NULL, worker, NULL))) { in main()
279 if ((ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1))) { in main()
282 if ((ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2))) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D4-1.c287 if ((ret = pthread_create(&th_waiter, NULL, waiter, NULL))) { in main()
291 if ((ret = pthread_create(&th_worker, NULL, worker, NULL))) { in main()
302 if ((ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1))) { in main()
305 if ((ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2))) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D4-2.c219 ret = pthread_create(&th_waiter[i], NULL, waiter, NULL); in main()
224 ret = pthread_create(&th_worker, NULL, worker, NULL); in main()
235 ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1); in main()
238 ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D4-3.c275 if ((ret = pthread_create(&th_waiter, NULL, waiter, NULL))) { in main()
279 if ((ret = pthread_create(&th_worker, NULL, worker, NULL))) { in main()
290 if ((ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1))) { in main()
293 if ((ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2))) { in main()

12345678910>>...26