/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_thrd_test.cpp | 73 thrd_t thread1 = thrd_current(); in HWTEST_F() local 75 EXPECT_TRUE(thrd_equal(thread1, thread2)); in HWTEST_F() 85 thrd_t thread1 = thrd_current(); in HWTEST_F() local 86 std::thread([&thread1] { in HWTEST_F() 88 EXPECT_FALSE(thrd_equal(thread1, thread2)); in HWTEST_F()
|
H A D | thread_cnd_test.cpp | 77 std::thread thread1([&]() { wt.WaitrBroadCast(); }); in HWTEST_F() 83 thread1.join(); in HWTEST_F() 97 std::thread thread1([&]() { wt.WaitrSignal(); }); in HWTEST_F() 108 thread1.join(); in HWTEST_F()
|
H A D | thread_sem_test.cpp | 44 pthread_t thread1, thread2; in HWTEST_F() local 45 EXPECT_EQ(0, pthread_create(&thread1, nullptr, ThreadFn, &sem_)); in HWTEST_F() 51 EXPECT_EQ(0, pthread_join(thread1, 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 433 * thread1 does not end with a detached attribute 439 pthread_t thread1; in HWTEST_F() local 440 pthread_create(&thread1, nullptr, BeginLoop, nullptr); in HWTEST_F() 442 pthread_create(&thread2, nullptr, JoinThrd, reinterpret_cast<void*>(thread1)); in HWTEST_F() 445 EXPECT_DEATH(pthread_detach(thread1), ".*"); in HWTEST_F() 447 EXPECT_DEATH(pthread_getattr_np(thread1, in HWTEST_F() 469 pthread_t thread1; HWTEST_F() local [all...] |
/third_party/elfutils/tests/ |
H A D | dwfl-proc-attach.c | 44 static pthread_t thread1; variable 80 if ((err = pthread_create (&thread1, NULL, sleeper, NULL)) != 0) in main() 81 error (-1, err, "Couldn't create thread1"); in main() 102 pthread_cancel (thread1); in main() 104 pthread_join (thread1, NULL); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
H A D | 2-1.c | 26 static pthread_t thread1; variable 35 pthread_cancel(thread1); in alarm_handler() 94 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 98 while (!t1_start) /* wait for thread1 started */ in main() 119 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); in main() 126 pthread_join(thread1, NULL); in main()
|
H A D | 3-1.c | 25 static pthread_t thread1; variable 34 pthread_cancel(thread1); in alarm_handler() 91 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 106 "To wake up thread1 by broadcasting its waited condition\n"); in main() 113 pthread_join(thread1, NULL); in main()
|
H A D | 1-1.c | 26 static pthread_t thread1; variable 35 pthread_cancel(thread1); in alarm_handler() 81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 85 while (!t1_start) /* wait for thread1 started */ in main() 106 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); in main() 113 pthread_join(thread1, NULL); in main()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | cpu_init.c | 43 pthread_t thread1; in main() local 46 if ((ret = pthread_create(&thread1, NULL, thread_main, &cpu_flags1))) { in main() 54 pthread_join(thread1, NULL); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/ |
H A D | 3-2.c | 33 static pthread_t thread1; variable 74 if (pthread_create(&thread1, NULL, a_thread_func, NULL) != 0) { in main() 80 pthread_join(thread1, NULL); in main()
|
/third_party/libuv/docs/code/signal/ |
H A D | main.c | 58 uv_thread_t thread1, thread2; in main() local 60 uv_thread_create(&thread1, thread1_worker, 0); in main() 63 uv_thread_join(&thread1); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 4-1.c | 68 pthread_t thread1; in main() local 80 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 87 pthread_join(thread1, &th_ret); in main()
|
H A D | 2-2.c | 79 pthread_t thread1; in main() local 92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 97 while (!t1_start) /* wait for thread1 started */ in main() 115 if (pthread_join(thread1, &th_ret) != 0) { in main()
|
H A D | 2-3.c | 70 pthread_t thread1; in main() local 83 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 93 if (pthread_join(thread1, (void *)&th_ret) != 0) { in main()
|
H A D | 1-1.c | 81 pthread_t thread1; in main() local 93 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 97 while (!t1_start) /* wait for thread1 started */ in main() 111 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); in main() 118 pthread_join(thread1, NULL); in main()
|
H A D | 3-1.c | 85 pthread_t thread1; in main() local 97 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 101 while (!t1_start) /* wait for thread1 started */ in main() 115 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); in main() 122 pthread_join(thread1, NULL); in main()
|
H A D | 2-1.c | 100 pthread_t thread1; in main() local 112 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main() 116 while (!t1_start) /* wait for thread1 started */ in main() 130 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); in main() 137 pthread_join(thread1, NULL); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 2-1.c | 90 pthread_t thread1; in main() local 108 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { in main() 109 printf("Error creating thread1\n"); in main() 143 if (pthread_join(thread1, NULL) != 0) { in main()
|
H A D | 5-1.c | 48 printf("thread1: Error at pthread_rwlock_init\n"); in fn_rd_1() 58 printf("thread1: attempt timed read-lock\n"); in fn_rd_1() 61 printf("thread1: timed read-lock expired\n"); in fn_rd_1() 64 printf("thread1: acquired read lock\n"); in fn_rd_1() 66 printf("thread1: unlock read lock\n"); in fn_rd_1() 68 printf("thread1: failed to release read lock\n"); in fn_rd_1() 72 printf("thread1: Error in pthread_rwlock_timedrdlock().\n"); in fn_rd_1() 77 printf("thread1: Error at pthread_rwlockattr_destroy()\n"); in fn_rd_1() 134 pthread_t thread1, thread2; in main() local 137 printf("main: create thread1\ in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 1-1.c | 56 printf("thread1: Error at pthread_rwlock_unlock()\n"); in fn_wr() 74 pthread_t thread1, thread2; in main() local 90 printf("main: create thread1\n"); in main() 91 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main() 92 printf("Error creating thread1\n"); in main() 105 printf("Test FAILED: The thread1 did not block\n"); in main() 121 /* thread1 should get the write lock */ in main() 129 printf("Test FAILEd: thread1 did not get the write lock\n"); in main() 133 printf("Child thread1 in unexpected state %d\n", thread_state); in main() 137 if (pthread_join(thread1, NUL in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 2-1.c | 95 pthread_t thread1; in main() local 112 if (pthread_create(&thread1, NULL, fn, NULL) != 0) { in main() 151 if (pthread_join(thread1, NULL) != 0) { in main()
|
H A D | 5-1.c | 55 printf("thread1: Error at pthread_rwlock_init\n"); in fn_wr_1() 65 printf("thread1: attempt timed lock for writing\n"); in fn_wr_1() 68 printf("thread1: timer expired\n"); in fn_wr_1() 71 printf("thread1: acquired write lock\n"); in fn_wr_1() 73 printf("thread1: unlock write lock\n"); in fn_wr_1() 75 printf("thread1: failed to release write lock\n"); in fn_wr_1() 79 printf("thread1: Error in pthread_rwlock_timedwrlock().\n"); in fn_wr_1() 84 printf("thread1: Error at pthread_rwlockattr_destroy()\n"); in fn_wr_1() 140 pthread_t thread1, thread2; in main() local 143 printf("main: create thread1\ in main() [all...] |
/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 85 printf("main: create thread1\n"); in main() 86 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main() 87 printf("Error creating thread1\n"); in main() 93 /* We do no expect thread1 to block */ in main() 102 ("Test FAILED: thread1 should not block on pthread_rwlock_trywrlock()\n"); in main() 105 printf("Unexpected thread state for thread1: %d\n", in main() 111 printf("Test FAILED: thread1 should get EBUSY\n"); in main() 121 if (pthread_join(thread1, NULL) != 0) { in main() 122 printf("main: Error joining thread1\ in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_spin_unlock.c | 23 static void thread1(void) in thread1() function 47 ret = pthread_create(&thread, NULL, (void *)thread1, NULL); in pthread_spin_unlock_0100()
|
/third_party/pulseaudio/src/tests/ |
H A D | atomic-test.c | 97 pa_thread *thread1, *thread2; in START_TEST() local 111 thread1 = pa_thread_new("left", &write_func, &io1); in START_TEST() 116 pa_thread_free(thread1); in START_TEST()
|