metaforce/Runtime/CArchitectureQueue.hpp

31 lines
544 B
C++
Raw Normal View History

2015-08-20 02:52:07 +00:00
#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__