Lines Matching full:cur_state
348 int32_t cur_state = state_;
349 if (cur_state == 0) {
390 int32_t cur_state = state_;
391 if (cur_state == 0) {
434 int32_t cur_state = state_;
435 if (cur_state == 1) {
439 done = android_atomic_release_cas(cur_state, 0, &state_) == 0;
449 LOG(FATAL) << "Unexpected state_ in unlock " << cur_state << " for " << name_;
453 cur_state, name_).c_str());
551 int32_t cur_state = state_;
552 if (cur_state == 0) {
559 if (futex(&state_, FUTEX_WAIT, cur_state, NULL, NULL, 0) != 0) {
585 int32_t cur_state = state_;
586 if (cur_state == -1) {
598 LOG(FATAL) << "Unexpected state_:" << cur_state << " for " << name_;
614 int32_t cur_state = state_;
615 if (cur_state == 0) {
628 if (futex(&state_, FUTEX_WAIT, cur_state, &rel_ts, NULL, 0) != 0) {
666 int32_t cur_state = state_;
667 if (cur_state >= 0) {
669 done = android_atomic_acquire_cas(cur_state, cur_state + 1, &state_) == 0;