This commit is contained in:
azw 2023-04-09 08:09:12 +00:00
parent 925f11416a
commit 8857b5ab99

View File

@ -11,6 +11,7 @@
#include <f8/netmsghandler.h>
#include <f8/udplog.h>
#include <f8/msgqueue.h>
#include "app.h"
#include "GCListener.h"
@ -103,6 +104,7 @@ bool App::Init(int argc, char* argv[])
srand(time(nullptr));
InitLog();
f8::MsgQueue::Instance()->Init();
HandlerMgr::Instance()->Init();
f8::Timer::Instance()->Init();
JsonDataMgr::Instance()->Init();
@ -163,6 +165,7 @@ void App::UnInit()
DownStreamMgr::Instance()->UnInit();
JsonDataMgr::Instance()->UnInit();
f8::Timer::Instance()->UnInit();
f8::MsgQueue::Instance()->UnInit();
HandlerMgr::Instance()->UnInit();
UnInitLog();
@ -229,6 +232,7 @@ void App::AddSocketMsg(SocketFrom_e sockfrom,
void App::QuickExecute()
{
f8::MsgQueue::Instance()->Update();
DispatchMsg();
f8::Timer::Instance()->Update();
}