33 return m_State.load();
38 ProfilingState currentState = m_State.load(std::memory_order::memory_order_relaxed);
47 ThrowStateTransitionException(currentState, newState);
50 while (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));
58 ThrowStateTransitionException(currentState, newState);
61 while (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));
68 ThrowStateTransitionException(currentState, newState);
71 while (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));
78 ThrowStateTransitionException(currentState, newState);
81 while (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));
bool IsOneOfStates(ProfilingState state1)
void TransitionToState(ProfilingState newState)
ProfilingState GetCurrentState() const
constexpr char const * GetProfilingStateName(ProfilingState state)