Searched refs:once_control (Results 1 - 5 of 5) sorted by relevance

/freebsd-9.3-release/lib/libc/gen/
H A D_once_stub.c38 _libc_once(pthread_once_t *once_control, void (*init_routine)(void)) argument
41 if (once_control->state == PTHREAD_DONE_INIT)
44 once_control->state = PTHREAD_DONE_INIT;
58 _once(pthread_once_t *once_control, void (*init_routine)(void)) argument
62 return (_pthread_once(once_control, init_routine));
63 return (_libc_once(once_control, init_routine));
/freebsd-9.3-release/lib/libkse/thread/
H A Dthr_once.c51 * on once_control shall be as if pthread_once() was never called.
57 pthread_once_t *once_control = arg; local
60 once_control->state = ONCE_NEVER_DONE;
66 _pthread_once(pthread_once_t *once_control, void (*init_routine) (void)) argument
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
[all...]
/freebsd-9.3-release/lib/libthr/thread/
H A Dthr_once.c47 * on once_control shall be as if pthread_once() was never called.
53 pthread_once_t *once_control = arg; local
55 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS, ONCE_NEVER_DONE))
57 atomic_store_rel_int(&once_control->state, ONCE_NEVER_DONE);
58 _thr_umtx_wake(&once_control->state, INT_MAX, 0);
62 _pthread_once(pthread_once_t *once_control, void (*init_routine) (void)) argument
70 state = once_control->state;
74 if (atomic_cmpset_acq_int(&once_control->state, state, ONCE_IN_PROGRESS))
77 if (atomic_cmpset_acq_int(&once_control->state, state, ONCE_WAIT))
78 _thr_umtx_wait_uint(&once_control
[all...]
/freebsd-9.3-release/lib/libc/locale/
H A Dxlocale.c132 static pthread_once_t once_control = PTHREAD_ONCE_INIT; variable
138 _once(&once_control, init_key);
159 _once(&once_control, init_key);
257 _once(&once_control, init_key);
308 _once(&once_control, init_key);
/freebsd-9.3-release/contrib/libcxxrt/
H A Dexception.cc357 static pthread_once_t once_control = PTHREAD_ONCE_INIT; variable
392 if ((0 == pthread_once) || pthread_once(&once_control, init_key))

Completed in 48 milliseconds