Lines Matching defs:cur_state
131 int32_t cur_state = state_.LoadRelaxed();
132 if (LIKELY(cur_state >= 0)) {
134 done = state_.CompareExchangeWeakAcquire(cur_state, cur_state + 1);
136 HandleSharedLockContention(self, cur_state);
155 int32_t cur_state = state_.LoadRelaxed();
156 if (LIKELY(cur_state > 0)) {
161 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, cur_state - 1);
162 if (done && (cur_state - 1) == 0) { // Weak CAS may fail spuriously.
170 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_;