2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 15:11:21 +00:00
metaforce/Runtime/CArchitectureQueue.hpp
Lioncash 06789d1860 General: Normalize several headers' include paths
Normalizes the include paths and makes them consistent. Also adds any
missing includes relevant to the interface.
2019-09-22 20:36:33 -04:00

23 lines
496 B
C++

#pragma once
#include <list>
#include "Runtime/CArchitectureMessage.hpp"
namespace urde {
class CArchitectureQueue {
std::list<CArchitectureMessage> 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(); }
operator bool() const { return m_list.size() != 0; }
};
} // namespace urde