Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 – 25 of 48) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_thrd_test.cpp73 thrd_t thread1 = thrd_current(); variable
75 EXPECT_TRUE(thrd_equal(thread1, thread2));
85 thrd_t thread1 = thrd_current(); variable
86 std::thread([&thread1] { in __anon8f40d0dc0102()
88 EXPECT_FALSE(thrd_equal(thread1, thread2)); in __anon8f40d0dc0102()
Dthread_cnd_test.cpp77 std::thread thread1([&]() { wt.WaitrBroadCast(); }); in __anond145133f0102() variable
83 thread1.join();
97 std::thread thread1([&]() { wt.WaitrSignal(); }); in __anond145133f0302() variable
108 thread1.join();
Dthread_pthrd_test.cpp439 pthread_t thread1; variable
440 pthread_create(&thread1, nullptr, BeginLoop, nullptr);
442 pthread_create(&thread2, nullptr, JoinThrd, reinterpret_cast<void*>(thread1));
445 EXPECT_DEATH(pthread_detach(thread1), ".*");
447 EXPECT_DEATH(pthread_getattr_np(thread1, &detachAttr), ".*");
469 pthread_t thread1; variable
470 pthread_create(&thread1, nullptr, BeginLoop, nullptr);
473 pthread_create(&thread2, nullptr, JoinThrd, reinterpret_cast<void*>(thread1));
477 EXPECT_DEATH(pthread_join(thread1, nullptr), ".*");
Dthread_sem_test.cpp44 pthread_t thread1, thread2; variable
45 EXPECT_EQ(0, pthread_create(&thread1, nullptr, ThreadFn, &sem_));
51 EXPECT_EQ(0, pthread_join(thread1, nullptr));
/third_party/elfutils/tests/
Ddwfl-proc-attach.c44 static pthread_t thread1; variable
80 if ((err = pthread_create (&thread1, NULL, sleeper, NULL)) != 0) in main()
102 pthread_cancel (thread1); in main()
104 pthread_join (thread1, NULL); in main()
/third_party/gstreamer/gstreamer/tests/check/libs/
Dcollectpads.c454 GThread *thread1, *thread2; in GST_START_TEST() local
473 thread1 = g_thread_try_new ("gst-check", push_buffer, data1, NULL); in GST_START_TEST()
489 g_thread_join (thread1); in GST_START_TEST()
504 GThread *thread1, *thread2; in GST_START_TEST() local
522 thread1 = g_thread_try_new ("gst-check", push_buffer, data1, NULL); in GST_START_TEST()
538 g_thread_join (thread1); in GST_START_TEST()
551 GThread *thread1, *thread2; in GST_START_TEST() local
571 thread1 = g_thread_try_new ("gst-check", push_buffer, data1, NULL); in GST_START_TEST()
589 g_thread_join (thread1); in GST_START_TEST()
609 thread1 = g_thread_try_new ("gst-check", push_buffer, data1, NULL); in GST_START_TEST()
[all …]
Daggregator.c498 GThread *thread1, *thread2; in GST_START_TEST() local
507 thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL); in GST_START_TEST()
515 g_thread_join (thread1); in GST_START_TEST()
527 GThread *thread1, *thread2; in GST_START_TEST() local
536 thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL); in GST_START_TEST()
544 g_thread_join (thread1); in GST_START_TEST()
581 GThread *thread1, *thread2; in GST_START_TEST() local
591 thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL); in GST_START_TEST()
599 g_thread_join (thread1); in GST_START_TEST()
611 GThread *thread1, *thread2; in GST_START_TEST() local
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
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()
113 pthread_join(thread1, NULL); in main()
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()
113 pthread_join(thread1, NULL); in main()
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()
126 pthread_join(thread1, NULL); in main()
/third_party/ffmpeg/libavutil/tests/
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/
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/
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/
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()
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()
D2-2.c79 pthread_t thread1; in main() local
92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
115 if (pthread_join(thread1, &th_ret) != 0) { in main()
D3-1.c85 pthread_t thread1; in main() local
97 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
122 pthread_join(thread1, NULL); in main()
D1-1.c81 pthread_t thread1; in main() local
93 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
118 pthread_join(thread1, NULL); in main()
D2-1.c100 pthread_t thread1; in main() local
112 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
137 pthread_join(thread1, NULL); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D2-1.c90 pthread_t thread1; in main() local
108 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { in main()
143 if (pthread_join(thread1, NULL) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
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()
/third_party/gstreamer/gstreamer/tests/check/elements/
Dconcat.c114 GThread *thread1, *thread2, *thread3; in GST_START_TEST() local
144 thread1 = g_thread_new ("thread1", (GThreadFunc) push_buffers_time, sink1); in GST_START_TEST()
148 g_thread_join (thread1); in GST_START_TEST()
235 GThread *thread1, *thread2, *thread3; in GST_START_TEST() local
266 thread1 = g_thread_new ("thread1", (GThreadFunc) push_buffers_bytes, sink1); in GST_START_TEST()
270 g_thread_join (thread1); in GST_START_TEST()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
D1-1.c74 pthread_t thread1, thread2; in main() local
91 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
137 if (pthread_join(thread1, NULL) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/
D1-1.c67 pthread_t thread1, thread2; in main() local
86 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
121 if (pthread_join(thread1, NULL) != 0) { in main()
/third_party/pulseaudio/src/tests/
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()

12