Home
last modified time | relevance | path

Searched refs:g_thread (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/startup/init/test/unittest/modules/
H A Dcontext_unittest.cpp29 static pthread_t g_thread = 0; variable
38 g_thread = 0; in ThreadFunc()
53 int ret = pthread_create(&g_thread, nullptr, ThreadFunc, forkArg); in SubInitFork()
111 if (g_thread != 0) {
112 pthread_join(g_thread, nullptr);
113 g_thread = 0;
132 if (g_thread != 0) {
133 pthread_join(g_thread, nullptr);
134 g_thread = 0;
/ohos5.0/drivers/peripheral/usb/sample/device/linux/
H A Dacm_test.c39 static struct OsalThread g_thread; variable
105 ret = OsalThreadCreate(&g_thread, (OsalThreadEntry)ReadThread, NULL); in StartThreadRead()
111 ret = OsalThreadStart(&g_thread, &threadCfg); in StartThreadRead()
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
H A Dosal_all_test.c60 OSAL_DECLARE_THREAD(g_thread);
456 ret = OsalThreadCreate(&g_thread, (OsalThreadEntry)ThreadTest, (void *)&para); in OsaThreadTest1()
458 ret = OsalThreadStart(&g_thread, &threadCfg); in OsaThreadTest1()
716 OsalThreadDestroy(&g_thread); in OsaTestEnd()
/ohos5.0/drivers/peripheral/usb/gadget/function/acm/
H A Dcdcacm.c585 struct OsalThread g_thread; variable
598 ret = OsalThreadCreate(&g_thread, (OsalThreadEntry)SpeedThread, port); in StartThreadSpeed()
604 ret = OsalThreadStart(&g_thread, &threadCfg); in StartThreadSpeed()