Home | History | Annotate | Download | only in base

Lines Matching defs:cur_state

156     int32_t cur_state = state_.LoadRelaxed();
157 if (LIKELY(cur_state >= 0)) {
159 done = state_.CompareExchangeWeakAcquire(cur_state, cur_state + 1);
164 if (futex(state_.Address(), FUTEX_WAIT, cur_state, NULL, NULL, 0) != 0) {
188 int32_t cur_state = state_.LoadRelaxed();
189 if (LIKELY(cur_state > 0)) {
194 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, cur_state - 1);
195 if (done && (cur_state - 1) == 0) { // Weak CAS may fail spuriously.
203 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_;