Searched refs:onceControl (Results 1 – 6 of 6) sorted by relevance
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
D | It_posix_pthread_211.c | 50 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()
|
D | It_posix_pthread_214.c | 53 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/ |
D | pthread.c | 534 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/ |
D | pthread.c | 271 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/ |
D | pthread_cond_func_test.c | 719 pthread_once_t onceControl = 0; variable 735 ret = pthread_once(&onceControl, pthread_once_f01);
|
/kernel/liteos_m/testsuites/sample/posix/ |
D | pthread_func_test.c | 701 pthread_once_t onceControl = 0; variable 717 ret = pthread_once(&onceControl, PthreadOnceFunc01);
|