2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

CIOWinManager implementation

This commit is contained in:
Jack Andersen
2015-08-25 15:34:56 -10:00
parent 3f1025abb3
commit a9cfd21ebc
12 changed files with 415 additions and 75 deletions

View File

@@ -11,18 +11,18 @@ class CArchitectureQueue
{
std::list<CArchitectureMessage> m_list;
public:
void PushMessage(CArchitectureMessage&& msg)
void Push(CArchitectureMessage&& msg)
{
m_list.push_back(std::move(msg));
}
const CArchitectureMessage& PeekMessage() const
{
return m_list.front();
}
void PopMessage()
CArchitectureMessage Pop()
{
CArchitectureMessage msg = std::move(m_list.front());
m_list.pop_front();
return msg;
}
void Clear() {m_list.clear();}
operator bool() {return m_list.size() != 0;}
};
}