Home | History | Annotate | Download | only in base

Lines Matching defs:cur_state

139     int32_t cur_state = state_;
140 if (LIKELY(cur_state >= 0)) {
142 done = android_atomic_acquire_cas(cur_state, cur_state + 1, &state_) == 0;
147 if (futex(&state_, FUTEX_WAIT, cur_state, NULL, NULL, 0) != 0) {
169 int32_t cur_state = state_;
170 if (LIKELY(cur_state > 0)) {
172 done = android_atomic_release_cas(cur_state, cur_state - 1, &state_) == 0;
173 if (done && (cur_state - 1) == 0) { // cas may fail due to noise?
180 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_;