Searched refs:once_control (Results 1 - 6 of 6) sorted by relevance
/freebsd-10.2-release/lib/libc/gen/ |
H A D | _once_stub.c | 38 _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-10.2-release/lib/libkse/thread/ |
H A D | thr_once.c | 51 * 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-10.2-release/lib/libthr/thread/ |
H A D | thr_once.c | 47 * 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-10.2-release/contrib/jemalloc/src/ |
H A D | mutex.c | 56 static pthread_once_t once_control = PTHREAD_ONCE_INIT; local 58 pthread_once(&once_control, pthread_create_once);
|
/freebsd-10.2-release/lib/libc/locale/ |
H A D | xlocale.c | 132 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-10.2-release/contrib/libcxxrt/ |
H A D | exception.cc | 357 static pthread_once_t once_control = PTHREAD_ONCE_INIT; variable 392 if ((0 == pthread_once) || pthread_once(&once_control, init_key))
|
Completed in 85 milliseconds