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