Lines Matching refs:tid
42 pthread_t tid;
44 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCreateBasic, (void*)str), 0) << "> return errno";
46 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno";
63 pthread_t tid;
65 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadJoinWait, nullptr), 0) << "> return errno";
66 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno";
77 pthread_t tid;
81 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPublic, (void*)&num), 0) << "> return errno";
82 EXPECT_EQ(pthread_join(tid, &joinRe), 0) << "> return errno";
95 pthread_t tid;
96 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPublic, nullptr), 0) << "> return errno";
98 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno";
114 pthread_t tid;
118 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadExitThread, (void*)&num), 0) << "> return errno";
119 EXPECT_EQ(pthread_join(tid, &joinRe), 0) << "> return errno";
142 pthread_t tid;
146 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadExitFunction, (void*)&num), 0) << "> return errno";
147 EXPECT_EQ(pthread_join(tid, &joinRe), 0) << "> return errno";
159 pthread_t tid;
160 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPublic, nullptr), 0) << "> return errno";
161 EXPECT_EQ(pthread_detach(tid), 0) << "> return errno";
162 EXPECT_EQ(pthread_join(tid, nullptr), EINVAL) << "> return errno";
167 pthread_t *tid = (pthread_t*)arg;
168 EXPECT_NE(pthread_equal(*tid, pthread_self()), 0) << "pthread_equal should be equal";
180 pthread_t tid;
181 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadEqual, (void*)&tid), 0) << "> return errno";
182 EXPECT_EQ(pthread_equal(tid, pthread_self()), 0) << "pthread_equal should be no equal";
183 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno";
321 pthread_t tid;
322 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadSpecificAllDelete, (void*)&data), 0) << "> return errno";
324 pthread_join(tid, nullptr);
354 pthread_t tid;
356 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadTestPush, nullptr), 0) << "> return errno";
358 pthread_join(tid, nullptr);
384 pthread_t tid;
386 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadTestPushParam, nullptr), 0) << "> return errno";
388 pthread_join(tid, nullptr);
419 pthread_t tid;
421 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadTestop, nullptr), 0) << "> return errno";
423 pthread_join(tid, nullptr);
491 pthread_t tid;
497 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadTestBarrierWait1, (void*)&intParam), 0) << "> return errno";
509 pthread_join(tid, nullptr);
534 pthread_t tid;
540 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadTestBarrierAlwaysWait, (pthread_barrier_t*)&barrier), 0)
551 pthread_join(tid, nullptr);
603 pthread_t tid;
605 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadNoCancelPoint, nullptr), 0) << "> return errno";
607 EXPECT_EQ(pthread_cancel(tid), 0);
609 EXPECT_EQ(pthread_join(tid, NULL), 0);
630 pthread_t tid;
632 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCancelPoint, nullptr), 0) << "> return errno";
634 EXPECT_EQ(pthread_cancel(tid), 0);
636 EXPECT_EQ(pthread_join(tid, NULL), 0);
657 pthread_t tid;
659 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCancelDisable, nullptr), 0) << "> return errno";
661 EXPECT_EQ(pthread_cancel(tid), 0);
663 EXPECT_EQ(pthread_join(tid, NULL), 0);
685 pthread_t tid;
688 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCancelAsynchronous, nullptr), 0) << "> return errno";
690 EXPECT_EQ(pthread_cancel(tid), 0);
692 EXPECT_EQ(pthread_join(tid, NULL), 0);
713 pthread_t tid;
716 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCancelDeferred, nullptr), 0) << "> return errno";
718 EXPECT_EQ(pthread_cancel(tid), 0);
720 EXPECT_EQ(pthread_join(tid, NULL), 0);
742 pthread_t tid;
744 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCancelEnable, nullptr), 0) << "> return errno";
746 EXPECT_EQ(pthread_cancel(tid), 0);
748 EXPECT_EQ(pthread_join(tid, NULL), 0);
871 pthread_t tid;
872 if (pthread_create(&tid, nullptr, ThreadNPthreadAtfork, nullptr) != 0) {
875 if (pthread_join(tid, nullptr) != 0) {
903 pthread_t tid[2];
905 ASSERT_EQ(pthread_create(&tid[0], nullptr, ThreadOnce, (void*)&once), 0) << "> return errno";
906 ASSERT_EQ(pthread_create(&tid[1], nullptr, ThreadOnce, (void*)&once), 0) << "> return errno";
907 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno";
908 EXPECT_EQ(pthread_join(tid[1], nullptr), 0) << "> return errno";