Lines Matching defs:init
11 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();
39 int __pthread_once(pthread_once_t *control, void (*init)(void))
41 /* Return immediately if init finished before, but ensure that
42 * effects of the init routine are visible to the caller. */
47 return __pthread_once_full(control, init);