Lines Matching refs:state
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);
67 int state;
72 state = once_control->state;
73 if (state == ONCE_DONE) {
77 if (state == ONCE_NEVER_DONE) {
78 if (atomic_cmpset_int(&once_control->state, state,
81 } else if (state == ONCE_IN_PROGRESS) {
82 if (atomic_cmpset_int(&once_control->state, state,
84 _thr_umtx_wait_uint(&once_control->state,
86 } else if (state == ONCE_WAIT) {
87 _thr_umtx_wait_uint(&once_control->state, state,
97 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS,
100 atomic_store_rel_int(&once_control->state, ONCE_DONE);
101 _thr_umtx_wake(&once_control->state, INT_MAX, 0);