Home
last modified time | relevance | path

Searched refs:onceControl (Results 1 – 6 of 6) sorted by relevance

/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
DIt_posix_pthread_211.c50 pthread_once_t onceControl = PTHREAD_ONCE_INIT; in Testcase() local
54 ret = pthread_once(&onceControl, PthreadF01); in Testcase()
56 ICUNIT_ASSERT_EQUAL(onceControl, 1, onceControl); in Testcase()
59 ret = pthread_once(&onceControl, PthreadF01); in Testcase()
61 ICUNIT_ASSERT_EQUAL(onceControl, 1, onceControl); in Testcase()
DIt_posix_pthread_214.c53 pthread_once_t onceControl = PTHREAD_ONCE_INIT; in Testcase() local
57 ret = pthread_once(&onceControl, PthreadF01); in Testcase()
59 ICUNIT_ASSERT_EQUAL(onceControl, 1, onceControl); in Testcase()
/kernel/liteos_a/compat/posix/src/
Dpthread.c534 int pthread_once(pthread_once_t *onceControl, void (*initRoutine)(void)) in pthread_once() argument
539 if ((onceControl == NULL) || (initRoutine == NULL)) { in pthread_once()
549 old = *onceControl; in pthread_once()
550 *onceControl = 1; in pthread_once()
/kernel/liteos_m/kal/posix/src/
Dpthread.c271 int pthread_once(pthread_once_t *onceControl, void (*initRoutine)(void)) in pthread_once() argument
282 if ((onceControl == NULL) || (initRoutine == NULL)) { in pthread_once()
286 old = *onceControl; in pthread_once()
287 *onceControl = 1; in pthread_once()
/kernel/liteos_m/testsuites/unittest/posix/src/pthread/
Dpthread_cond_func_test.c719 pthread_once_t onceControl = 0; variable
735 ret = pthread_once(&onceControl, pthread_once_f01);
/kernel/liteos_m/testsuites/sample/posix/
Dpthread_func_test.c701 pthread_once_t onceControl = 0; variable
717 ret = pthread_once(&onceControl, PthreadOnceFunc01);