/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_thrd_test.cpp | 74 thrd_t thread2 = thrd_current(); in HWTEST_F() local 75 EXPECT_TRUE(thrd_equal(thread1, thread2)); in HWTEST_F() 87 thrd_t thread2 = thrd_current(); in HWTEST_F() 88 EXPECT_FALSE(thrd_equal(thread1, thread2)); in HWTEST_F() 90 EXPECT_TRUE(thrd_equal(thread2, thread3)); in HWTEST_F()
|
H A D | thread_cnd_test.cpp | 78 std::thread thread2([&]() { wt.WaitrBroadCast(); }); in HWTEST_F() 84 thread2.join(); in HWTEST_F() 98 std::thread thread2([&]() { wt.WaitrSignal(); }); in HWTEST_F() 109 thread2.join(); in HWTEST_F()
|
H A D | thread_sem_test.cpp | 44 pthread_t thread1, thread2; in HWTEST_F() local 46 EXPECT_EQ(0, pthread_create(&thread2, nullptr, ThreadFn, &sem_)); in HWTEST_F() 52 EXPECT_EQ(0, pthread_join(thread2, nullptr)); in HWTEST_F()
|
H A D | thread_pthrd_test.cpp | 431 * @tc.desc: Create thread thread1, strongly convert thread1 into a parameter of thread thread2, and set the destructor 432 * of thread2 to add thread1 to pthread_join, call pthread again_ Invalid return for detach (thread1), determine if 441 pthread_t thread2; in HWTEST_F() local 442 pthread_create(&thread2, nullptr, JoinThrd, reinterpret_cast<void*>(thread1)); in HWTEST_F() 456 EXPECT_EQ(0, pthread_join(thread2, &joinResult)); in HWTEST_F() 472 pthread_t thread2; in HWTEST_F() local 473 pthread_create(&thread2, nullptr, JoinThrd, reinterpret_cast<void*>(thread1)); in HWTEST_F() 482 EXPECT_EQ(0, pthread_join(thread2, &joinResult)); in HWTEST_F()
|
/third_party/elfutils/tests/ |
H A D | dwfl-proc-attach.c | 45 static pthread_t thread2; variable 82 if ((err = pthread_create (&thread2, NULL, sleeper, NULL)) != 0) in main() 83 error (-1, err, "Couldn't create thread2"); in main() 103 pthread_cancel (thread2); in main() 105 pthread_join (thread2, NULL); in main()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | cpu_init.c | 44 pthread_t thread2; in main() local 50 if ((ret = pthread_create(&thread2, NULL, thread_main, &cpu_flags2))) { in main() 55 pthread_join(thread2, NULL); in main()
|
/third_party/libuv/docs/code/signal/ |
H A D | main.c | 58 uv_thread_t thread1, thread2; in main() local 61 uv_thread_create(&thread2, thread2_worker, 0); in main() 64 uv_thread_join(&thread2); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 1-1.c | 74 pthread_t thread1, thread2; in main() local 152 printf("main: create thread2\n"); in main() 153 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 154 printf("main: Error creating thread2\n"); in main() 164 printf("Test FAILED: thread2 should have block\n"); in main() 167 printf("thread2 in unexpected state %d\n", thread_state); in main() 178 if (pthread_join(thread2, NULL) != 0) { in main() 179 printf("main: Error joining thread2\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
H A D | 1-1.c | 67 pthread_t thread1, thread2; in main() local 141 printf("main: create thread2\n"); in main() 142 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 143 printf("main: Error creating thread2\n"); in main() 147 /* We do not expect thread2 to block */ in main() 154 ("Test FAILED: thread2 should not block on pthread_rwlock_trywrlock()\n"); in main() 162 printf("Test FAILED: thread2 should get EBUSY\n"); in main() 173 if (pthread_join(thread2, NULL) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 5-1.c | 93 printf("thread2: Error at pthread_rwlock_init\n"); in fn_rd_2() 103 printf("thread2: attempt timed read-lock\n"); in fn_rd_2() 106 printf("thread2: timed read-lock expired\n"); in fn_rd_2() 109 printf("thread2: acquired read lock\n"); in fn_rd_2() 111 printf("thread2: unlock read lock\n"); in fn_rd_2() 113 printf("thread2: failed to release read lock\n"); in fn_rd_2() 117 printf("thread2: Error in pthread_rwlock_timedrdlock().\n"); in fn_rd_2() 122 printf("thread2: Error at pthread_rwlockattr_destroy()\n"); in fn_rd_2() 134 pthread_t thread1, thread2; in main() local 173 printf("main: create thread2\ in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 5-1.c | 100 printf("thread2: Error at pthread_rwlock_init\n"); in fn_wr_2() 109 printf("thread2: attempt timed lock for writing\n"); in fn_wr_2() 112 printf("thread2: timer expired\n"); in fn_wr_2() 115 printf("thread2: acquired write lock\n"); in fn_wr_2() 117 printf("thread2: unlock write lock\n"); in fn_wr_2() 119 printf("thread2: failed to release write lock\n"); in fn_wr_2() 123 printf("thread2: Error in pthread_rwlock_timedwrlock().\n"); in fn_wr_2() 128 printf("thread2: Error at pthread_rwlock_destroy()\n"); in fn_wr_2() 140 pthread_t thread1, thread2; in main() local 178 printf("main: create thread2\ in main() [all...] |
H A D | 3-1.c | 114 pthread_t thread0, thread1, thread2; in main() local 228 printf("main: create thread2\n"); in main() 229 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 230 printf("Error when creating thread2\n"); in main() 234 /* we expect thread2 to expire blocking after timeout */ in main() 253 printf("thread2 correctly expired at timeout.\n"); in main() 256 printf("Test FAILED: for thread2, wait is not terminated " in main() 260 printf("Unexpected state for thread2 %d\n", thread_state); in main()
|
H A D | 1-1.c | 94 pthread_t thread0, thread1, thread2; in main() local 207 printf("main: create thread2\n"); in main() 208 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 209 printf("Error when creating thread2\n"); in main() 213 /* we expect thread2 to expire blocking after timeout */ in main() 232 printf("thread2 correctly expired at timeout.\n"); in main() 236 ("Test FAILED: for thread2, wait is not terminated even when the timer expired\n"); in main() 239 printf("Unexpected state for thread2 %d\n", thread_state); in main()
|
/third_party/pulseaudio/src/tests/ |
H A D | atomic-test.c | 97 pa_thread *thread1, *thread2; in START_TEST() local 115 thread2 = pa_thread_new("right", &read_func, &io2); in START_TEST() 117 pa_thread_free(thread2); in START_TEST()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
H A D | cpuset_memory_test.c | 303 err(1, "sigwaitinfo() in thread2 failed"); in thread2_routine() 318 * to control thread2 behaviour. 326 pthread_t thread2; in main() local 339 pthread_create(&thread2, NULL, thread2_routine, NULL); in main() 382 pthread_cancel(thread2); in main() 383 pthread_join(thread2, &retv); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_spin_trylock.c | 32 static void thread2(void) in thread2() function 86 ret = pthread_create(&thread, NULL, (void *)thread2, NULL); in pthread_spin_trylock_0200()
|
/third_party/openssl/test/ |
H A D | threadstest.c | 472 thread_t thread1, thread2; in test_multi() local 538 || !TEST_true(run_thread(&thread2, worker2))) in test_multi() 549 if (!TEST_true(wait_for_thread(thread2))) in test_multi() 583 thread_t thread1, thread2; in test_multi_default() local 601 || !TEST_true(run_thread(&thread2, thread_multi_simple_fetch))) in test_multi_default() 607 || !TEST_true(wait_for_thread(thread2)) in test_multi_default()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_pthread.cpp | 530 pthread_t thread2; in Bm_function_pthread_equal() local 532 pthread_create(&thread2, nullptr, GetThreadId, nullptr); in Bm_function_pthread_equal() 534 pthread_join(thread2, nullptr); in Bm_function_pthread_equal() 536 benchmark::DoNotOptimize(pthread_equal(thread1, thread2)); in Bm_function_pthread_equal() 547 pthread_t thread2; in Bm_function_pthread_attr_init_destroy() local 553 pthread_create(&thread2, &attr, GetThreadId, nullptr); in Bm_function_pthread_attr_init_destroy() 555 pthread_join(thread2, nullptr); in Bm_function_pthread_attr_init_destroy()
|
/third_party/ltp/testcases/kernel/security/dirtyc0w_shmem/ |
H A D | dirtyc0w_shmem_child.c | 177 pthread_t thread1, thread2, thread3, *stress_threads; in main() local 228 SAFE_PTHREAD_CREATE(&thread2, NULL, write_thread_fn, NULL); in main()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | lock_test.cc | 211 MutexLockTestThread thread2(&lock, &value); in MutexFourThreads() 218 EXPECT_TRUE(PlatformThread::Create(&thread2, &handle2)); in MutexFourThreads()
|
/third_party/node/deps/openssl/openssl/crypto/chacha/asm/ |
H A D | chacha-armv8.pl | 948 my @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0); 959 eval(shift(@thread2)); eval(shift(@thread67)); 967 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1); 976 eval(shift(@thread2)); eval(shift(@thread67)); 1062 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0); 1071 eval(shift(@thread2)); eval(shift(@thread67)); 1079 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1); 1088 eval(shift(@thread2)); eval(shift(@thread67));
|
H A D | chacha-ppc.pl | 603 my @thread2=&VMXROUND($A2,$B2,$C2,$D2,0); 609 eval(shift(@thread2)); 619 @thread2=&VMXROUND($A2,$B2,$C2,$D2,1); 625 eval(shift(@thread2));
|
H A D | chacha-armv4.pl | 743 my @thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,0); 749 eval(shift(@thread2)); eval(shift(@thread3)); 754 @thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,1); 760 eval(shift(@thread2)); eval(shift(@thread3));
|
/third_party/openssl/crypto/chacha/asm/ |
H A D | chacha-armv8.pl | 953 my @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0); 964 eval(shift(@thread2)); eval(shift(@thread67)); 972 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1); 981 eval(shift(@thread2)); eval(shift(@thread67)); 1067 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0); 1076 eval(shift(@thread2)); eval(shift(@thread67)); 1084 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1); 1093 eval(shift(@thread2)); eval(shift(@thread67));
|
H A D | chacha-ppc.pl | 603 my @thread2=&VMXROUND($A2,$B2,$C2,$D2,0); 609 eval(shift(@thread2)); 619 @thread2=&VMXROUND($A2,$B2,$C2,$D2,1); 625 eval(shift(@thread2));
|