1
This commit is contained in:
parent
e23fe79136
commit
bbc15afd7e
@ -12,6 +12,7 @@
|
|||||||
#include "playermgr.h"
|
#include "playermgr.h"
|
||||||
#include "httpproxy.h"
|
#include "httpproxy.h"
|
||||||
#include "tracemgr.h"
|
#include "tracemgr.h"
|
||||||
|
#include "iomgr.h"
|
||||||
|
|
||||||
#include "mt/MetaMgr.h"
|
#include "mt/MetaMgr.h"
|
||||||
|
|
||||||
@ -28,10 +29,12 @@ void App::Init()
|
|||||||
mt::MetaMgr::Instance()->Init();
|
mt::MetaMgr::Instance()->Init();
|
||||||
PlayerMgr::Instance()->Init();
|
PlayerMgr::Instance()->Init();
|
||||||
HttpProxy::Instance()->Init();
|
HttpProxy::Instance()->Init();
|
||||||
|
IoMgr::Instance()->Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::UnInit()
|
void App::UnInit()
|
||||||
{
|
{
|
||||||
|
IoMgr::Instance()->UnInit();
|
||||||
PlayerMgr::Instance()->UnInit();
|
PlayerMgr::Instance()->UnInit();
|
||||||
HttpProxy::Instance()->UnInit();
|
HttpProxy::Instance()->UnInit();
|
||||||
f8::BtMgr::Instance()->UnInit();
|
f8::BtMgr::Instance()->UnInit();
|
||||||
@ -43,7 +46,7 @@ void App::UnInit()
|
|||||||
|
|
||||||
bool App::HasTask()
|
bool App::HasTask()
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -64,6 +67,7 @@ const std::string App::GetPkgName()
|
|||||||
|
|
||||||
void App::Update(int delta_time)
|
void App::Update(int delta_time)
|
||||||
{
|
{
|
||||||
|
IoMgr::Instance()->Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::DispatchSocketMsg(f8::MsgHdr* hdr)
|
void App::DispatchSocketMsg(f8::MsgHdr* hdr)
|
||||||
|
@ -26,13 +26,11 @@ void IoMgr::UnInit()
|
|||||||
|
|
||||||
void IoMgr::Update()
|
void IoMgr::Update()
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
for (auto type_io_contexts : io_contexts_) {
|
for (auto type_io_contexts : io_contexts_) {
|
||||||
for (auto io_context : type_io_contexts) {
|
for (auto io_context : type_io_contexts) {
|
||||||
io_context->poll();
|
io_context->poll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<asio::io_context> IoMgr::GetIoContext(int type)
|
std::shared_ptr<asio::io_context> IoMgr::GetIoContext(int type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user