Searched refs:cur_state (Results 1 - 2 of 2) sorted by relevance

/art/runtime/base/
H A Dmutex-inl.h156 int32_t cur_state = state_.LoadRelaxed(); local
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(); local
189 if (LIKELY(cur_state > 0)) {
194 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, cur_state - 1);
195 if (done && (cur_state
[all...]
H A Dmutex.cc322 int32_t cur_state = state_.LoadRelaxed(); local
323 if (LIKELY(cur_state == 0)) {
325 done = state_.CompareExchangeWeakAcquire(0 /* cur_state */, 1 /* new state */);
365 int32_t cur_state = state_.LoadRelaxed(); local
366 if (cur_state == 0) {
368 done = state_.CompareExchangeWeakAcquire(0 /* cur_state */, 1 /* new state */);
411 int32_t cur_state = state_.LoadRelaxed(); local
412 if (LIKELY(cur_state == 1)) {
419 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, 0 /* new state */);
429 LOG(FATAL) << "Unexpected state_ in unlock " << cur_state << " fo
498 int32_t cur_state = state_.LoadRelaxed(); local
534 int32_t cur_state = state_.LoadRelaxed(); local
568 int32_t cur_state = state_.LoadRelaxed(); local
620 int32_t cur_state = state_.LoadRelaxed(); local
[all...]

Completed in 256 milliseconds