Searched refs:cur_val (Results 1 – 2 of 2) sorted by relevance
600 int32_t cur_val = pending_threads.LoadRelaxed(); in SuspendAllInternal() local601 if (LIKELY(cur_val > 0)) { in SuspendAllInternal()603 if (futex(pending_threads.Address(), FUTEX_WAIT, cur_val, &wait_timeout, nullptr, 0) != 0) { in SuspendAllInternal()613 cur_val = pending_threads.LoadRelaxed(); in SuspendAllInternal()614 CHECK_EQ(cur_val, 0); in SuspendAllInternal()621 CHECK_EQ(cur_val, 0); in SuspendAllInternal()
1084 int32_t cur_val = pending_threads->LoadRelaxed(); in PassActiveSuspendBarriers() local1085 CHECK_GT(cur_val, 0) << "Unexpected value for PassActiveSuspendBarriers(): " << cur_val; in PassActiveSuspendBarriers()1087 done = pending_threads->CompareExchangeWeakRelaxed(cur_val, cur_val - 1); in PassActiveSuspendBarriers()1089 if (done && (cur_val - 1) == 0) { // Weak CAS may fail spuriously. in PassActiveSuspendBarriers()