/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_rwlock_rdlock.c | 51 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( in pthread_rwlock_timedrdlock_monotonic_np_0010() [all...] |
H A D | pthread_rwlock_wrlock.c | 256 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeWait1, NULL), 0); in pthread_rwlock_timedwrlock_0050() 257 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeWait2, NULL), 0); in pthread_rwlock_timedwrlock_0050() 274 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeOut1, NULL), 0); in pthread_rwlock_timedwrlock_0060() 275 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeOut2, NULL), 0); in pthread_rwlock_timedwrlock_0060() 292 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockMonotonicTimeOut1, NULL), 0); in pthread_rwlock_timedwrlock_0070() 293 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockMonotonicTimeOut2, NULL), 0); in pthread_rwlock_timedwrlock_0070() 310 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockMonotonicTimeWait1, NULL), 0); in pthread_rwlock_timedwrlock_0080() 311 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockMonotonicTimeWait2, NULL), 0); in pthread_rwlock_timedwrlock_0080() 328 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockMonotonicTime1, NULL), 0); in pthread_rwlock_timedwrlock_0090() 329 EXPECT_EQ(pthread_create( in pthread_rwlock_timedwrlock_0090() [all...] |
H A D | pthread_mutex_ext.c | 46 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( in pthread_mutex_lock_timeout_np_0020() [all...] |
H A D | pthread_cond_timedwait.c | 268 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( in clockwait_timedwait_0060() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_pthrd_test.cpp | 85 EXPECT_EQ(0, pthread_create(&thread, nullptr, PthreadNameNp, nullptr)); in HWTEST_F() 97 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr); in HWTEST_F() 122 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr); in HWTEST_F() 184 EXPECT_EQ(0, pthread_create(&signalThread, nullptr, WaitSignalHandler, &receivedPthreadSignal)); in HWTEST_F() 201 EXPECT_EQ(0, pthread_create(&thread, nullptr, ReturnFunc, getRes)); in HWTEST_F() 225 EXPECT_EQ(0, pthread_create(&thread, nullptr, ThreadStr, &msg)); in HWTEST_F() 297 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr); in HWTEST_F() 337 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr); in HWTEST_F() 353 pthread_create(&deadThread, nullptr, ReturnFunc, nullptr); in HWTEST_F() 391 EXPECT_EQ(0, pthread_create( in HWTEST_F() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | dl_multithread_test.c | 43 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()
|
H A D | pthread_cond.c | 45 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()
|
H A D | pthread_cancel.c | 72 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()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_create.c | 46 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() 112 * @tc.desc: Verify pthread_create success when pthread is detached. 122 int32_t ret = pthread_create(&ph, &attr, threadfunc, (char *)(URL)); in pthread_create_0500()
|
H A D | pthread_mutex_lock.c | 71 int32_t ret = pthread_create(&tid1, NULL, threadfuncA, NULL); in pthread_mutex_lock_0100() 86 pthread_create(&tid2, NULL, threadfuncB, NULL); in pthread_mutex_lock_0200() 101 pthread_create(&tid3, NULL, threadfuncC, NULL); in pthread_mutex_lock_0300() 116 pthread_create(&tid4, NULL, threadfuncD, NULL); in pthread_mutex_lock_0400()
|
H A D | pthread_equal.c | 56 result = pthread_create(&pthread1, NULL, threadfuncA, NULL); in pthread_equal_0100() 58 t_error("%s pthread_create failed\n", __func__); in pthread_equal_0100() 61 result = pthread_create(&pthread2, NULL, threadfuncB, NULL); in pthread_equal_0100() 63 t_error("%s pthread_create failed\n", __func__); in pthread_equal_0100() 86 result = pthread_create(&g_pthd_2, NULL, threadfuncC, NULL); in pthread_equal_0200() 88 t_error("%s pthread_create failed\n", __func__); in pthread_equal_0200()
|
H A D | pthread_mutex_unlock.c | 54 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()
|
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_cancel-sem_wait.c | 60 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()
|
H A D | pthread_once-deadlock.c | 62 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/ |
H A D | stress.c | 254 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/musl/libc-test/src/functionalext/supplement/network/ |
H A D | accept4.c | 265 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( in accept4_0600() [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | libc_pthread.cpp | 435 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() 490 pthread_create(&threadOne, nullptr, ThreadTaskOne, nullptr); in Bm_function_pthread_cond_signal_wait() 531 pthread_create(&thread1, nullptr, GetThreadId, nullptr); in Bm_function_pthread_equal() 532 pthread_create(&thread2, nullptr, GetThreadId, nullptr); in Bm_function_pthread_equal() 552 pthread_create(&thread1, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy() 553 pthread_create(&thread2, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy() 595 pthread_create(&tid, nullptr, Func, &state); in Bm_function_pthread_spin_lock_and_spin_unlock() 623 pthread_create( in Bm_function_pthread_detach() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/functional/mqueues/ |
H A D | send_rev_2.c | 128 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/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
H A D | cxa_thread_atexit_test.cpp | 71 ASSERT_EQ(0, pthread_create(&thr1, nullptr, ChildThreadFunc, nullptr));
in HWTEST_F() 75 ASSERT_EQ(0, pthread_create(&thr2, nullptr, ChildThreadFunc, nullptr));
in HWTEST_F() 146 ASSERT_EQ(0, pthread_create(&thr, nullptr, TestForMultipleDtors, nullptr));
in HWTEST_F() 217 ASSERT_EQ(0, pthread_create(&thr, nullptr, TestDlcloseSoStub, nullptr));
in HWTEST_F()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
H A D | 4-2.c | 219 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_signal/ |
H A D | 4-2.c | 264 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_join/ |
H A D | 6-3.c | 138 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/ |
H A D | pthread_fortify_test.c | 52 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_equal/ |
H A D | 1-2.c | 36 if (pthread_create(&new_th1, NULL, a_thread_func, NULL) != 0) { in main() 42 if (pthread_create(&new_th2, NULL, a_thread_func, NULL) != 0) { in main()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | cpu_init.c | 46 if ((ret = pthread_create(&thread1, NULL, thread_main, &cpu_flags1))) { in main() 47 fprintf(stderr, "pthread_create failed: %s.\n", strerror(ret)); in main() 50 if ((ret = pthread_create(&thread2, NULL, thread_main, &cpu_flags2))) { in main() 51 fprintf(stderr, "pthread_create failed: %s.\n", strerror(ret)); in main()
|