2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-07 04:55:35 +00:00
metaforce/Runtime/CArchitectureQueue.hpp
2015-08-19 16:52:07 -10:00

31 lines
544 B
C++

#ifndef __RETRO_CARCHITECTUREQUEUE_HPP__
#define __RETRO_CARCHITECTUREQUEUE_HPP__
#include <list>
#include "CArchitectureMessage.hpp"
namespace Retro
{
class CArchitectureQueue
{
std::list<CArchitectureMessage> m_list;
public:
void PushMessage(CArchitectureMessage&& msg)
{
m_list.push_back(std::move(msg));
}
const CArchitectureMessage& PeekMessage() const
{
return m_list.front();
}
void PopMessage()
{
m_list.pop_front();
}
};
}
#endif // __RETRO_CARCHITECTUREQUEUE_HPP__