Home | History | Annotate | Download | only in base

Lines Matching defs:cur_state

134     int32_t cur_state = state_.LoadRelaxed();
135 if (LIKELY(cur_state >= 0)) {
137 done = state_.CompareExchangeWeakAcquire(cur_state, cur_state + 1);
139 HandleSharedLockContention(self, cur_state);
158 int32_t cur_state = state_.LoadRelaxed();
159 if (LIKELY(cur_state > 0)) {
164 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, cur_state - 1);
165 if (done && (cur_state - 1) == 0) { // Weak CAS may fail spuriously.
173 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_;