1
This commit is contained in:
parent
101ab36a7a
commit
f71a4ef0fd
@ -25,6 +25,7 @@
|
|||||||
#include "upstreammgr.h"
|
#include "upstreammgr.h"
|
||||||
#include "master.h"
|
#include "master.h"
|
||||||
#include "mastermgr.h"
|
#include "mastermgr.h"
|
||||||
|
#include "iomgr.h"
|
||||||
|
|
||||||
#include "longsessionmgr.h"
|
#include "longsessionmgr.h"
|
||||||
|
|
||||||
@ -127,6 +128,9 @@ bool App::Init(int argc, char* argv[])
|
|||||||
f8::Timer::Instance()->Init();
|
f8::Timer::Instance()->Init();
|
||||||
JsonDataMgr::Instance()->Init();
|
JsonDataMgr::Instance()->Init();
|
||||||
uuid_->SetMachineId((node_id_ - 1) * MAX_NODE_ID + instance_id_);
|
uuid_->SetMachineId((node_id_ - 1) * MAX_NODE_ID + instance_id_);
|
||||||
|
#ifdef USE_ASIO
|
||||||
|
IoMgr::Instance()->Init();
|
||||||
|
#endif
|
||||||
DownStreamMgr::Instance()->Init();
|
DownStreamMgr::Instance()->Init();
|
||||||
MasterMgr::Instance()->Init();
|
MasterMgr::Instance()->Init();
|
||||||
UpStreamMgr::Instance()->Init();
|
UpStreamMgr::Instance()->Init();
|
||||||
@ -189,6 +193,9 @@ void App::UnInit()
|
|||||||
MasterMgr::Instance()->UnInit();
|
MasterMgr::Instance()->UnInit();
|
||||||
UpStreamMgr::Instance()->UnInit();
|
UpStreamMgr::Instance()->UnInit();
|
||||||
DownStreamMgr::Instance()->UnInit();
|
DownStreamMgr::Instance()->UnInit();
|
||||||
|
#ifdef USE_ASIO
|
||||||
|
IoMgr::Instance()->UnInit();
|
||||||
|
#endif
|
||||||
JsonDataMgr::Instance()->UnInit();
|
JsonDataMgr::Instance()->UnInit();
|
||||||
f8::Timer::Instance()->UnInit();
|
f8::Timer::Instance()->UnInit();
|
||||||
f8::MsgQueue::Instance()->UnInit();
|
f8::MsgQueue::Instance()->UnInit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user