Lines Matching refs:once_control
51 * on once_control shall be as if pthread_once() was never called.
57 pthread_once_t *once_control = arg;
60 once_control->state = ONCE_NEVER_DONE;
66 _pthread_once(pthread_once_t *once_control, void (*init_routine) (void))
71 if (once_control->state == ONCE_DONE)
74 while (*(volatile int *)&(once_control->state) == ONCE_IN_PROGRESS)
80 if (*(volatile int *)&(once_control->state) == ONCE_NEVER_DONE) {
81 once_control->state = ONCE_IN_PROGRESS;
84 THR_CLEANUP_PUSH(curthread, once_cancel_handler, once_control);
88 once_control->state = ONCE_DONE;