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

/freebsd-11-stable/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-11-stable/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; local
55 once_control = arg;
56 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS,
59 atomic_store_rel_int(&once_control->state, ONCE_NEVER_DONE);
60 _thr_umtx_wake(&once_control->state, INT_MAX, 0);
64 _pthread_once(pthread_once_t *once_control, void (*init_routine) (void)) argument
72 state = once_control->state;
78 if (atomic_cmpset_int(&once_control->state, state,
82 if (atomic_cmpset_int(&once_control
[all...]
/freebsd-11-stable/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-11-stable/contrib/jemalloc/src/
H A Dmutex.c56 static pthread_once_t once_control = PTHREAD_ONCE_INIT; local
58 pthread_once(&once_control, pthread_create_once);
/freebsd-11-stable/contrib/libcxxrt/
H A Dexception.cc362 static pthread_once_t once_control = PTHREAD_ONCE_INIT; variable
397 if ((0 == pthread_once) || pthread_once(&once_control, init_key))

Completed in 182 milliseconds