/test/xts/acts/kernel_lite/process_posix/src/ |
H A D | PthreadBasicApiTest.cpp | 42 pthread_t tid; in HWTEST_F() local 44 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCreateBasic, (void*)str), 0) << "> return errno"; in HWTEST_F() 46 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 63 pthread_t tid; in HWTEST_F() local 65 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadJoinWait, nullptr), 0) << "> return errno"; in HWTEST_F() 66 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 77 pthread_t tid; in HWTEST_F() local 81 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPublic, (void*)&num), 0) << "> return errno"; in HWTEST_F() 82 EXPECT_EQ(pthread_join(tid, &joinRe), 0) << "> return errno"; in HWTEST_F() 95 pthread_t tid; in HWTEST_F() local 114 pthread_t tid; HWTEST_F() local 142 pthread_t tid; HWTEST_F() local 159 pthread_t tid; HWTEST_F() local 167 pthread_t *tid = (pthread_t*)arg; ThreadPthreadEqual() local 180 pthread_t tid; HWTEST_F() local 321 pthread_t tid; HWTEST_F() local 354 pthread_t tid; HWTEST_F() local 384 pthread_t tid; HWTEST_F() local 419 pthread_t tid; HWTEST_F() local 491 pthread_t tid; HWTEST_F() local 534 pthread_t tid; HWTEST_F() local 603 pthread_t tid; HWTEST_F() local 630 pthread_t tid; HWTEST_F() local 657 pthread_t tid; HWTEST_F() local 685 pthread_t tid; HWTEST_F() local 713 pthread_t tid; HWTEST_F() local 742 pthread_t tid; HWTEST_F() local 871 pthread_t tid; HWTEST_F() local 903 pthread_t tid[2]; HWTEST_F() local [all...] |
H A D | PthreadAttrTest.cpp | 35 pthread_t tid; in HWTEST_F() local 45 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; in HWTEST_F() 47 EXPECT_EQ(pthread_join(tid, nullptr), EINVAL) << "> return errno"; in HWTEST_F() 55 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; in HWTEST_F() 57 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 80 pthread_t tid; in HWTEST_F() local 93 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPthreadAttrSetscope, nullptr), 0) << "> return errno"; in HWTEST_F() 96 pthread_join(tid, nullptr); in HWTEST_F() 120 pthread_t tid; in HWTEST_F() local 133 ASSERT_EQ(pthread_create(&tid, in HWTEST_F() 163 pthread_t tid; HWTEST_F() local 220 pthread_t tid; HWTEST_F() local 296 pthread_t tid; HWTEST_F() local [all...] |
/test/xts/acts/kernel_lite/futex_posix/src/ |
H A D | PthreadRwlockTest.cpp | 60 pthread_t tid[2]; in HWTEST_F() local 64 EXPECT_EQ(pthread_create(&tid[0], nullptr, PthreadRWlockWW1, nullptr), 0) << "> return errno"; in HWTEST_F() 65 EXPECT_EQ(pthread_create(&tid[1], nullptr, PthreadRWlockWW2, nullptr), 0) << "> return errno"; in HWTEST_F() 67 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 68 EXPECT_EQ(pthread_join(tid[1], nullptr), 0) << "> return errno"; in HWTEST_F() 102 pthread_t tid[2]; in HWTEST_F() local 106 EXPECT_EQ(pthread_create(&tid[0], nullptr, PthreadRWlockWR1, nullptr), 0) << "> return errno"; in HWTEST_F() 107 EXPECT_EQ(pthread_create(&tid[1], nullptr, PthreadRWlockWR2, nullptr), 0) << "> return errno"; in HWTEST_F() 109 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 110 EXPECT_EQ(pthread_join(tid[ in HWTEST_F() 144 pthread_t tid[2]; HWTEST_F() local 186 pthread_t tid[2]; HWTEST_F() local 227 pthread_t tid[2]; HWTEST_F() local 268 pthread_t tid[2]; HWTEST_F() local 312 pthread_t tid[2]; HWTEST_F() local 362 pthread_t tid[2]; HWTEST_F() local 412 pthread_t tid[2]; HWTEST_F() local 456 pthread_t tid[2]; HWTEST_F() local [all...] |
H A D | PthreadMutexTest.cpp | 54 pthread_t tid[loopNum]; in HWTEST_F() local 59 EXPECT_EQ(pthread_create(&tid[i], nullptr, ThreadMutex, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 62 EXPECT_EQ(pthread_join(tid[i], nullptr), 0) << "> return errno"; in HWTEST_F() 98 pthread_t tid[2]; in HWTEST_F() local 102 EXPECT_EQ(pthread_create(&tid[0], nullptr, ThreadMtrylock1, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 103 EXPECT_EQ(pthread_create(&tid[1], nullptr, ThreadMtrylock2, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 105 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 106 EXPECT_EQ(pthread_join(tid[1], nullptr), 0) << "> return errno"; in HWTEST_F() 173 pthread_t tid[2]; in HWTEST_F() local 175 EXPECT_EQ(pthread_create(&tid[ in HWTEST_F() 211 pthread_t tid; HWTEST_F() local 248 pthread_t tid; HWTEST_F() local 319 pthread_t tid; HWTEST_F() local 396 pthread_t tid; HWTEST_F() local 508 pthread_t tid[loopNum]; HWTEST_F() local 552 pthread_t tid[2]; HWTEST_F() local [all...] |
H A D | PthreadCondTest.cpp | 140 pthread_t tid[2]; in HWTEST_F() local 143 ASSERT_EQ(pthread_create(&tid[0], nullptr, ThreadPthreadCondSignalBefore1, nullptr), 0) << "> return errno"; in HWTEST_F() 144 ASSERT_EQ(pthread_create(&tid[1], nullptr, ThreadPthreadCondSignalBefore2, nullptr), 0) << "> return errno"; in HWTEST_F() 147 pthread_join(tid[0], nullptr); in HWTEST_F() 148 pthread_join(tid[1], nullptr); in HWTEST_F() 185 pthread_t tid[2]; in HWTEST_F() local 188 ASSERT_EQ(pthread_create(&tid[0], nullptr, ThreadTestCondSignalWaitAfter1, nullptr), 0) << "> return errno"; in HWTEST_F() 189 ASSERT_EQ(pthread_create(&tid[1], nullptr, ThreadTestCondSignalWaitAfter2, nullptr), 0) << "> return errno"; in HWTEST_F() 192 pthread_join(tid[0], nullptr); in HWTEST_F() 193 pthread_join(tid[ in HWTEST_F() 232 pthread_t tid[3]; HWTEST_F() local 332 pthread_t tid; HWTEST_F() local 370 pthread_t tid; HWTEST_F() local [all...] |
/test/xts/acts/kernel_lite/time_posix/src/ |
H A D | AlarmTest.cpp | 218 timer_t tid = nullptr;
in HWTEST_F() local 225 EXPECT_EQ(timer_create(CLOCK_REALTIME, &ev, &tid), 0) << "ERROR: timer_create() != 0";
in HWTEST_F() 226 LOG("tid = %p", tid);
in HWTEST_F() 232 EXPECT_EQ(timer_settime(tid, 0, &its, NULL), 0) << "ERROR: timer_settime() != 0";
in HWTEST_F() 237 EXPECT_EQ(timer_delete(tid), 0) << "ERROR: timer_delete() != 0";
in HWTEST_F() 250 timer_t tid = nullptr;
in HWTEST_F() local 254 EXPECT_EQ(timer_create(CLOCK_REALTIME, NULL, &tid), 0) << "ERROR: timer_create() != 0";
in HWTEST_F() 255 LOG("tid = %p", tid);
in HWTEST_F() 293 timer_t tid = NULL; HWTEST_F() local 338 timer_t tid = nullptr; HWTEST_F() local 377 timer_t tid = nullptr; HWTEST_F() local 391 timer_t tid = nullptr; HWTEST_F() local 452 timer_t tid = nullptr; HWTEST_F() local [all...] |
/test/xts/hats/kernel/syscalls/system/setrobustlist/ |
H A D | SetrobustlistApiTest.cpp | 44 int SetRobustList(int tid, void *list, size_t len) in SetRobustList() argument 46 return syscall(__NR_set_robust_list, tid, list, len); in SetRobustList() 83 pid_t tid = pthread_self(); in HWTEST_F() local 87 int ret = SetRobustList(tid, setRobustList, sizeof(struct RobustList)); in HWTEST_F()
|
/test/xts/acts/kernel_lite/ipc_posix/semaphore/ |
H A D | SemTest.cpp | 190 pthread_t tid; in HWTEST_F() local 197 reInt = pthread_create(&tid, nullptr, ThreadChat, (void*)&sem); in HWTEST_F() 211 reInt = pthread_join(tid, nullptr); in HWTEST_F() 247 pthread_t tid; in HWTEST_F() local 248 reInt = pthread_create(&tid, nullptr, ThreadSemTryWait, (void*)&sem); in HWTEST_F() 258 reInt = pthread_join(tid, nullptr); in HWTEST_F() 301 pthread_t tid; in HWTEST_F() local 308 reInt = pthread_create(&tid, nullptr, ThreadSemTimedWait, (void*)&sem); in HWTEST_F() 317 reInt = pthread_join(tid, nullptr); in HWTEST_F()
|
/test/xts/hats/kernel/syscalls/signal/tgkill/ |
H A D | TgkillApiTest.cpp | 58 pid_t tid; in HWTEST_F() local 67 tid = gettid(); in HWTEST_F() 68 ret = tgkill(getpid(), tid, SIGUSR1); in HWTEST_F()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | otherstestndk.cpp | 797 pid_t tid;
in Accept() local 799 rets = pthread_create(&cli, nullptr, ClientTask, &tid);
in Accept() 844 pid_t tid;
in Accept4() local 846 rets = pthread_create(&cli, nullptr, ClientTask4, &tid);
in Accept4() 940 pid_t tid;
in Pthreadgettidnp() local 943 pthread_create(&t, nullptr, pthread_test, &tid);
in Pthreadgettidnp() 1076 pthread_t tid;
in Pthreadmutexlocktimeoutnp() local 1077 pthread_create(&tid, nullptr, PthreadLockTimeoutNPNoOut, (void *)&mtx);
in Pthreadmutexlocktimeoutnp() 1083 pthread_join(tid, nullptr);
in Pthreadmutexlocktimeoutnp() 1114 pthread_t tid;
in Pthreadmutextimedlockmonotonicnp() local 1141 pthread_t tid; Pthreadmutexclocklock() local 1175 pthread_t tid[2]; Pthreadrwlockclockrdlock() local 1230 pthread_t tid[2]; Pthreadrwlocktimedrdlockmonotonicnp() local [all...] |
H A D | prctlndk.cpp | 46 pthread_t tid = PARAM_0;
in Prctl() local 47 pthread_create(&tid, nullptr, Thread, nullptr);
in Prctl() 48 pthread_join(tid, &pThreadResult);
in Prctl()
|
H A D | setjmpndk.cpp | 95 pthread_t tid = PARAM_0;
in SigLongJmp() local 96 pthread_create(&tid, nullptr, sigThread, nullptr);
in SigLongJmp() 97 pthread_detach(tid);
in SigLongJmp()
|
H A D | semaphorendk.cpp | 138 pthread_t tid = PARAM_0;
in SemPost() local 140 pthread_create(&tid, nullptr, threadfuncA, nullptr);
in SemPost() 143 pthread_setschedparam(tid, SCHED_OTHER, &sched);
in SemPost()
|
/test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
H A D | IpcMqTest.cpp | 382 pthread_t tid;
in HWTEST_F() local 394 EXPECT_TRUE(pthread_create(&tid, NULL, PthreadCom, (void *)queue) != -1) << "ERROR: pthread_create() == -1";
in HWTEST_F() 397 EXPECT_TRUE(pthread_join(tid, NULL) == 0) << "ERROR: pthread_join() != 0";
in HWTEST_F() 444 pthread_t tid;
in HWTEST_F() local 457 EXPECT_TRUE(pthread_create(&tid, NULL, PthreadTimedCom, (void *)queue) != -1) << "ERROR: pthread_create() == -1";
in HWTEST_F() 462 EXPECT_TRUE(pthread_join(tid, NULL) == 0) << "ERROR: pthread_join() != 0";
in HWTEST_F() 511 pthread_t tid;
in HWTEST_F() local 523 EXPECT_TRUE(pthread_create(&tid, NULL, PthreadAllCom, (void *)queue) != -1) << "ERROR: pthread_create() == -1";
in HWTEST_F() 526 EXPECT_TRUE(pthread_join(tid, NULL) == 0) << "ERROR: pthread_join() != 0";
in HWTEST_F()
|
/test/xts/device_attest/services/devattest_ability/src/ |
H A D | devattest_task.cpp | 41 pthread_t tid; in CreateThread() local 48 int ret = pthread_create(&tid, &attr, DevAttestTask::Run, NULL); in CreateThread()
|
/test/ostest/wukong/report/include/ |
H A D | csv_utils.h | 35 uint64_t tid; member 70 csvFile << data.tid << ','; in WriteOneLine()
|
/test/xts/acts/kernel_lite/ipc_posix/signal/ |
H A D | SignalTest.cpp | 1206 pthread_t tid;
in HWTEST_F() local 1208 int ret = pthread_create(&tid, NULL, ThreadFunc1, (void*)sigNo);
in HWTEST_F() 1211 ret = pthread_kill(tid, sigNo);
in HWTEST_F() 1213 ret = pthread_join(tid, NULL);
in HWTEST_F() 1233 pthread_t tid;
in HWTEST_F() local 1234 int ret = pthread_create(&tid, NULL, ThreadFunc2, &mainThread);
in HWTEST_F() 1241 ret = pthread_join(tid, &threadExitCode);
in HWTEST_F() 1270 pthread_t tid;
in HWTEST_F() local 1271 int ret = pthread_create(&tid, NULL, ThreadFuncForSigmask1, (void*)1);
in HWTEST_F() 1273 ret = pthread_join(tid, NUL in HWTEST_F() 1285 pthread_t tid; HWTEST_F() local 1311 pthread_t tid; HWTEST_F() local [all...] |
H A D | SignalTestUtils.cpp | 230 pthread_t* tid = (pthread_t*)arg;
in ThreadFunc2() local 231 int ret = pthread_kill(*tid, SIGINT);
in ThreadFunc2()
|
/test/xts/hats/kernel/accesstokenid/ |
H A D | accesstokenid_test.cpp | 66 pid_t tid; member 179 tinfo->tid = gettid(); in CheckChildThreadInheritance() 196 tinfo->tid = gettid(); in CheckChildThreadSetIndepent() 297 tinfo.tid = gettid(); in HWTEST_F() 339 tinfo.tid = gettid(); in HWTEST_F()
|
/test/xts/acts/communication_lite/dsoftbus_hal/src/ |
H A D | discovery_service_test.c | 142 pthread_t tid; in ThreadCreateTest() local 146 pthread_create(&tid, &threadAttr, entry, 0); in ThreadCreateTest()
|
H A D | softbus_bus_center_test.c | 51 pthread_t tid; in ThreadCreateTest() local 55 pthread_create(&tid, &threadAttr, entry, 0); in ThreadCreateTest()
|
/test/xts/hats/kernel/syscalls/process/processid/ |
H A D | ProcessApiTest.cpp | 299 pid_t tid = gettid(); in HWTEST_F() local 300 EXPECT_TRUE(tid >= 0); in HWTEST_F()
|
/test/ostest/wukong/report/src/ |
H A D | sysevent_listener.cpp | 56 data.tid = static_cast<uint64_t>(sysEvent->GetTid()); in OnEvent()
|
/test/xts/acts/kernel_lite/io_posix/src/ |
H A D | IoTestStdio.cpp | 764 pthread_t tid; in HWTEST_F() local 765 int retI = pthread_create(&tid, NULL, Thread, NULL); in HWTEST_F() 767 retI = pthread_join(tid, NULL); in HWTEST_F()
|
/test/xts/acts/arkui/ace_napi_test/entry/src/main/cpp/napi/ |
H A D | napi_test.cpp | 3891 pthread_t tid; in RunEventLoop() local 3910 pthread_create(&tid, nullptr, NewThreadFunc, testCaseName); in RunEventLoop() 3911 pthread_detach(tid); in RunEventLoop() 3914 pthread_create(&tid, nullptr, NewThreadFunc, testCaseName); in RunEventLoop() 3915 pthread_detach(tid); in RunEventLoop() 3918 pthread_create(&tid, nullptr, NewThreadFunc, testCaseName); in RunEventLoop() 3919 pthread_detach(tid); in RunEventLoop() 3922 pthread_create(&tid, nullptr, NewThreadFunc, testCaseName); in RunEventLoop() 3923 pthread_detach(tid); in RunEventLoop() 3991 pthread_t tid; in StopEventLoop() local 3996 pthread_t tid; StopEventLoop() local [all...] |