Lines Matching refs:expected
145 std::uintptr_t expected = runner_bits; in set_completion_state() local
147 expected = runner_bits; in set_completion_state()
151 spin_wait_until_eq(m_state, expected); in set_completion_state()
152 } while (!m_state.compare_exchange_strong(expected, desired)); in set_completion_state()
157 std::uintptr_t expected = m_state.load(std::memory_order_acquire); in do_collaborative_call_once() local
161 …if (expected == state::uninitialized && m_state.compare_exchange_strong(expected, runner.to_bits()… in do_collaborative_call_once()
179 auto max_value = expected | collaborative_once_references_mask; in do_collaborative_call_once()
180 expected = spin_wait_while_eq(m_state, max_value); in do_collaborative_call_once()
182 … } while (expected > state::done && !m_state.compare_exchange_strong(expected, expected + 1)); in do_collaborative_call_once()
184 …if (auto shared_runner = collaborative_once_runner::from_bits(expected & ~collaborative_once_refer… in do_collaborative_call_once()
195 } while (expected != state::done); in do_collaborative_call_once()