#pragma once #include #include "Runtime/CArchitectureMessage.hpp" namespace urde { class CArchitectureQueue { std::list m_list; public: void Push(CArchitectureMessage&& msg) { m_list.push_back(std::move(msg)); } CArchitectureMessage Pop() { CArchitectureMessage msg = std::move(m_list.front()); m_list.pop_front(); return msg; } void Clear() { m_list.clear(); } explicit operator bool() const { return !m_list.empty(); } }; } // namespace urde