/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...] |
/vendor/hisilicon/hispark_pegasus/demo/thread_demo/00_thread/ |
H A D | thread.c | 31 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 32 if (tid == NULL) { in newThread() 35 printf("[Thread Test] osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 37 return tid; in newThread() 44 osThreadId_t tid = osThreadGetId(); in threadTest() local 45 printf("[Thread Test] threadTest osThreadGetId, thread id:%p\r\n", tid); in threadTest() 56 osThreadId_t tid = newThread("test_thread", threadTest, "This is a test thread."); in rtosv2_thread_main() local 58 const char *t_name = osThreadGetName(tid); in rtosv2_thread_main() 61 osThreadState_t state = osThreadGetState(tid); in rtosv2_thread_main() 64 osStatus_t status = osThreadSetPriority(tid, osPriorityNormal in rtosv2_thread_main() [all...] |
/drivers/peripheral/camera/hal_c/hdi_cif/include/ |
H A D | camera.h | 49 pid_t tid = gettid(); \ 50 printf("%s %4u %4u E " fmt "\n", now, (uint32_t)pid, (uint32_t)tid, ##__VA_ARGS__); \ 58 pid_t tid = gettid(); \ 59 printf("%s %4u %4u W " fmt "\n", now, (uint32_t)pid, (uint32_t)tid, ##__VA_ARGS__); \ 67 pid_t tid = gettid(); \ 68 printf("%s %4u %4u I " fmt "\n", now, (uint32_t)pid, (uint32_t)tid, ##__VA_ARGS__); \ 76 pid_t tid = gettid(); \ 77 printf("%s %4u %4u V " fmt "\n", now, (uint32_t)pid, (uint32_t)tid, ##__VA_ARGS__); \ 85 pid_t tid = gettid(); \ 86 printf("%s %4u %4u D " fmt "\n", now, (uint32_t)pid, (uint32_t)tid, ##__VA_ARGS_ [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...] |
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
H A D | osal_thread.c | 50 TskHandle tid; member 77 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadCreate() 132 ret = PRT_TaskCreate(¶->tid, &stTskInitParam); in OsalThreadStart() 134 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadStart() 139 ret = PRT_TaskResume(para->tid); in OsalThreadStart() 141 (void)PRT_TaskDelete(para->tid); in OsalThreadStart() 142 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadStart() 164 if (para->tid == OSAL_INVALID_THREAD_ID) { in OsalCheckPara() 183 ret = PRT_TaskSuspend(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadSuspend() 219 ret = PRT_TaskResume(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadResume() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/mutex_demo/ |
H A D | mutex.c | 54 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 55 if (tid == NULL) { in newThread() 58 printf("[Mutex Test]osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 60 return tid; in newThread() 80 osThreadId_t tid = osMutexGetOwner(mid); in rtosv2_mutex_main() local 81 printf("[Mutex Test]osMutexGetOwner, thread id: %p, thread name: %s.\r\n", tid, osThreadGetName(tid)); in rtosv2_mutex_main()
|
/vendor/hisilicon/hispark_pegasus/demo/message_demo/ |
H A D | message.c | 32 osThreadId_t tid; member 43 sentry.tid = osThreadGetId(); in sender_thread() 59 osThreadGetName(osThreadGetId()), rentry.count, osThreadGetName(rentry.tid)); in receiver_thread() 69 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 70 if (tid == NULL) { in newThread() 73 printf("[Message Test] osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 75 return tid; in newThread()
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_thread.c | 50 uint32_t tid; member 77 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadCreate() 139 ret = LOS_TaskCreate(¶->tid, &stTskInitParam); in OsalThreadStart() 141 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadStart() 163 if (para->tid == OSAL_INVALID_THREAD_ID) { in OsalCheckPara() 182 ret = LOS_TaskSuspend(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadSuspend() 218 ret = LOS_TaskResume(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadResume()
|
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
H A D | osal_thread.c | 50 uint32_t tid; member 77 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadCreate() 132 ret = LOS_TaskCreate(¶->tid, &stTskInitParam); in OsalThreadStart() 134 para->tid = OSAL_INVALID_THREAD_ID; in OsalThreadStart() 156 if (para->tid == OSAL_INVALID_THREAD_ID) { in OsalCheckPara() 175 ret = LOS_TaskSuspend(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadSuspend() 211 ret = LOS_TaskResume(((struct ThreadWrapper *)thread->realThread)->tid); in OsalThreadResume()
|
/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/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 | 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 | 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 | 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()
|
/vendor/hisilicon/hispark_pegasus/demo/semaphore_demo/ |
H A D | semp.c | 66 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 67 if (tid == NULL) { in newThread() 70 printf("[Semp Test]osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 72 return tid; in newThread()
|
/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()
|
/drivers/peripheral/usb/ddk/host/src/ |
H A D | usb_pnp_manager.c | 86 pthread_t tid; in UsbPnpManagerStartUeventThread() local 87 int32_t ret = pthread_create(&tid, NULL, DdkUeventMain, NULL); in UsbPnpManagerStartUeventThread() 93 ret = pthread_setname_np(tid, "usbpnpUeventThd"); in UsbPnpManagerStartUeventThread()
|
/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/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()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | hdi_wpa_hal.c | 100 if (p->tid != 0) { in WpaCliClose() 102 pthread_join(p->tid, NULL); in WpaCliClose() 103 p->tid = 0; in WpaCliClose()
|