Lines Matching refs:m_state
139 std::atomic<std::uintptr_t> m_state{ state::uninitialized };
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()
161 …if (expected == state::uninitialized && m_state.compare_exchange_strong(expected, runner.to_bits()… 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()
186 m_state.fetch_sub(1); in do_collaborative_call_once()
193 __TBB_ASSERT(m_state.load(std::memory_order_relaxed) != state::dead, in do_collaborative_call_once()
201 m_state.store(state::dead, std::memory_order_relaxed); in ~collaborative_once_flag()
209 __TBB_ASSERT(flag.m_state.load(std::memory_order_relaxed) != collaborative_once_flag::dead, in collaborative_call_once()
211 if (flag.m_state.load(std::memory_order_acquire) != collaborative_once_flag::done) { in collaborative_call_once()