Home
last modified time | relevance | path

Searched refs:thread2 (Results 1 – 8 of 8) sorted by relevance

/drivers/hdf_core/framework/test/unittest/platform/common/
Dtimer_test.c157 static int32_t TimerTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2) in TimerTestStartThread() argument
181 ret = OsalThreadStart(thread2, &cfg2); in TimerTestStartThread()
197 static int32_t TimerTestCreateThread(struct OsalThread *thread1, struct OsalThread *thread2, in TimerTestCreateThread() argument
208 ret = OsalThreadCreate(thread2, (OsalThreadEntry)TimerPeriodTestThreadFunc, (void *)handle2); in TimerTestCreateThread()
217 static void MultiThreadSourceRecycle(struct OsalThread *thread1, struct OsalThread *thread2, in MultiThreadSourceRecycle() argument
234 if (thread2->realThread != NULL) { in MultiThreadSourceRecycle()
235 (void)OsalThreadDestroy(thread2); in MultiThreadSourceRecycle()
246 struct OsalThread thread2; in TimerTestMultiThread() local
250 thread2.realThread = NULL; in TimerTestMultiThread()
260 MultiThreadSourceRecycle(&thread1, &thread2, handle1, handle2); in TimerTestMultiThread()
[all …]
Ddac_test.c149 static int32_t DacTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in DacTestStartThread() argument
174 ret = OsalThreadStart(thread2, &cfg2); in DacTestStartThread()
194 struct OsalThread thread2; in DacTestMultiThread() local
204 ret = OsalThreadCreate(&thread2, (OsalThreadEntry)DacTestThreadFunc, (void *)&count2); in DacTestMultiThread()
211 ret = DacTestStartThread(&thread1, &thread2, &count1, &count2); in DacTestMultiThread()
217 (void)OsalThreadDestroy(&thread2); in DacTestMultiThread()
Dadc_test.c162 static int32_t AdcTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in AdcTestStartThread() argument
187 ret = OsalThreadStart(thread2, &cfg2); in AdcTestStartThread()
207 struct OsalThread thread2; in AdcTestMultiThread() local
217 ret = OsalThreadCreate(&thread2, (OsalThreadEntry)AdcTestThreadFunc, (void *)&count2); in AdcTestMultiThread()
224 ret = AdcTestStartThread(&thread1, &thread2, &count1, &count2); in AdcTestMultiThread()
230 (void)OsalThreadDestroy(&thread2); in AdcTestMultiThread()
Dregulator_test.c189 static int32_t RegulatorTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in RegulatorTestStartThread() argument
213 ret = OsalThreadStart(thread2, &cfg2); in RegulatorTestStartThread()
233 struct OsalThread thread2; in RegulatorTestMultiThread() local
244 ret = OsalThreadCreate(&thread2, (OsalThreadEntry)RegulatorTestThreadFunc, (void *)&count2); in RegulatorTestMultiThread()
251 ret = RegulatorTestStartThread(&thread1, &thread2, &count1, &count2); in RegulatorTestMultiThread()
257 (void)OsalThreadDestroy(&thread2); in RegulatorTestMultiThread()
Di2c_test.c247 static int32_t I2cTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in I2cTestStartThread() argument
271 ret = OsalThreadStart(thread2, &cfg2); in I2cTestStartThread()
291 struct OsalThread thread2; in I2cTestMultiThread() local
301 ret = OsalThreadCreate(&thread2, (OsalThreadEntry)I2cTestThreadFunc, (void *)&count2); in I2cTestMultiThread()
308 ret = I2cTestStartThread(&thread1, &thread2, &count1, &count2); in I2cTestMultiThread()
314 (void)OsalThreadDestroy(&thread2); in I2cTestMultiThread()
Dplatform_dumper_test.c337 static int32_t PlatformDumperTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in PlatformDumperTestStartThread() argument
361 ret = OsalThreadStart(thread2, &cfg2); in PlatformDumperTestStartThread()
381 struct OsalThread thread2; in PlatformDumperTestMultiThread() local
391 … ret = OsalThreadCreate(&thread2, (OsalThreadEntry)PlatformDumperTestThreadFunc, (void *)&count2); in PlatformDumperTestMultiThread()
398 ret = PlatformDumperTestStartThread(&thread1, &thread2, &count1, &count2); in PlatformDumperTestMultiThread()
404 (void)OsalThreadDestroy(&thread2); in PlatformDumperTestMultiThread()
Di3c_test.c366 static int32_t I3cTestStartThread(struct OsalThread *thread1, struct OsalThread *thread2, in I3cTestStartThread() argument
390 ret = OsalThreadStart(thread2, &cfg2); in I3cTestStartThread()
410 struct OsalThread thread2; in I3cTestThreadFunc() local
420 ret = OsalThreadCreate(&thread2, func, (void *)&count2); in I3cTestThreadFunc()
427 ret = I3cTestStartThread(&thread1, &thread2, &count1, &count2); in I3cTestThreadFunc()
433 (void)OsalThreadDestroy(&thread2); in I3cTestThreadFunc()
/drivers/hdf_core/framework/test/unittest/osal/
Dosal_all_test.c48 OSAL_DECLARE_THREAD(thread2);
711 ret = OsalThreadCreate(&thread2, (OsalThreadEntry)ThreadTest2, (void *)&g_test2Para); in OsaThreadTest()
713 ret = OsalThreadStart(&thread2, &threadCfg); in OsaThreadTest()
978 OsalThreadDestroy(&thread2); in OsaTestEnd()