2015-08-18 05:54:43 +00:00
|
|
|
#ifndef __RETRO_CIOWINMANAGER_HPP__
|
|
|
|
#define __RETRO_CIOWINMANAGER_HPP__
|
|
|
|
|
2015-08-20 02:52:07 +00:00
|
|
|
#include <memory>
|
|
|
|
#include "CIOWin.hpp"
|
|
|
|
|
2015-08-18 05:54:43 +00:00
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
|
|
|
|
class CIOWinManager
|
|
|
|
{
|
2015-08-20 02:52:07 +00:00
|
|
|
struct IOWinPQNode
|
|
|
|
{
|
|
|
|
std::shared_ptr<CIOWin> m_iowin;
|
|
|
|
int m_prio;
|
|
|
|
CIOWinManager::IOWinPQNode* m_prev;
|
|
|
|
IOWinPQNode(std::weak_ptr<CIOWin> iowin, int prio,
|
|
|
|
CIOWinManager::IOWinPQNode* prev)
|
|
|
|
: m_iowin(iowin), m_prio(prio), m_prev(prev) {}
|
|
|
|
std::shared_ptr<CIOWin> GetIOWin() const {return m_iowin;}
|
|
|
|
};
|
|
|
|
bool OnIOWinMessage(const CArchitectureMessage& msg);
|
2015-08-18 05:54:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __RETRO_CIOWINMANAGER_HPP__
|