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

/freebsd-10-stable/lib/libthr/thread/
H A Dthr_once.c40 #define ONCE_IN_PROGRESS 0x02 macro
55 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS, ONCE_NEVER_DONE))
74 if (atomic_cmpset_acq_int(&once_control->state, state, ONCE_IN_PROGRESS))
76 } else if (state == ONCE_IN_PROGRESS) {
89 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS, ONCE_DONE))
/freebsd-10-stable/lib/libkse/thread/
H A Dthr_once.c41 #define ONCE_IN_PROGRESS 0x02 macro
74 while (*(volatile int *)&(once_control->state) == ONCE_IN_PROGRESS)
81 once_control->state = ONCE_IN_PROGRESS;

Completed in 137 milliseconds