Searched refs:ONCE_NEVER_DONE (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.0-release/lib/libkse/thread/
H A Dthr_once.c39 #define ONCE_NEVER_DONE PTHREAD_NEEDS_INIT macro
60 once_control->state = ONCE_NEVER_DONE;
78 * could be ONCE_NEVER_DONE, we need to check it again.
80 if (*(volatile int *)&(once_control->state) == ONCE_NEVER_DONE) {
/freebsd-10.0-release/lib/libthr/thread/
H A Dthr_once.c38 #define ONCE_NEVER_DONE PTHREAD_NEEDS_INIT macro
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);
73 if (state == ONCE_NEVER_DONE) {

Completed in 127 milliseconds