Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 - 25 of 41) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_thrd_test.cpp73 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 Dthread_cnd_test.cpp77 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 Dthread_sem_test.cpp44 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 Dthread_pthrd_test.cpp431 * @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 Ddwfl-proc-attach.c44 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 D2-1.c26 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 D3-1.c25 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 D1-1.c26 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 Dcpu_init.c43 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 D3-2.c33 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 Dmain.c58 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 D4-1.c68 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 D2-2.c79 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 D2-3.c70 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 D1-1.c81 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 D3-1.c85 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 D2-1.c100 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 D2-1.c90 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 D5-1.c48 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 D1-1.c56 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 D2-1.c95 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 D5-1.c55 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 D1-1.c67 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 Dpthread_spin_unlock.c23 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 Datomic-test.c97 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()

Completed in 12 milliseconds

12