Lines Matching full:init
11 hidden int __pthread_once_full(pthread_once_t *control, void (*init)(void)) in __pthread_once_full()
14 * 0 - we're the first or the other cancelled; run init in __pthread_once_full()
15 * 1 - another thread is running init; wait in __pthread_once_full()
16 * 2 - another thread finished running init; just return in __pthread_once_full()
17 * 3 - another thread is running init, waiters present; wait */ in __pthread_once_full()
22 init(); in __pthread_once_full()
40 int __pthread_once(pthread_once_t *control, void (*init)(void)) in __pthread_once()
42 /* Return immediately if init finished before, use load aquire to ensure that in __pthread_once()
43 * effects of the init routine are visible to the caller. */ in __pthread_once()
47 return __pthread_once_full(control, init); in __pthread_once()
50 int __pthread_once(pthread_once_t *control, void (*init)(void)) in __pthread_once()
52 /* Return immediately if init finished before, but ensure that in __pthread_once()
53 * effects of the init routine are visible to the caller. */ in __pthread_once()
58 return __pthread_once_full(control, init); in __pthread_once()