1
This commit is contained in:
parent
6ce406aea1
commit
8eb0472c32
@ -19,6 +19,7 @@
|
|||||||
#include "imsmgr.h"
|
#include "imsmgr.h"
|
||||||
#include "GGListener.h"
|
#include "GGListener.h"
|
||||||
#include "IMListener.h"
|
#include "IMListener.h"
|
||||||
|
#include "cachemgr.h"
|
||||||
|
|
||||||
#include "ss_msgid.pb.h"
|
#include "ss_msgid.pb.h"
|
||||||
#include "ss_proto.pb.h"
|
#include "ss_proto.pb.h"
|
||||||
@ -93,6 +94,7 @@ void App::Init(int argc, char* argv[])
|
|||||||
IMListener::Instance()->Init();
|
IMListener::Instance()->Init();
|
||||||
GSMgr::Instance()->Init();
|
GSMgr::Instance()->Init();
|
||||||
IMSMgr::Instance()->Init();
|
IMSMgr::Instance()->Init();
|
||||||
|
CacheMgr::Instance()->Init();
|
||||||
|
|
||||||
a8::UdpLog::Instance()->Info("masterserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
a8::UdpLog::Instance()->Info("masterserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
||||||
{
|
{
|
||||||
@ -114,6 +116,7 @@ void App::UnInit()
|
|||||||
if (terminated) {
|
if (terminated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
CacheMgr::Instance()->UnInit();
|
||||||
IMSMgr::Instance()->UnInit();
|
IMSMgr::Instance()->UnInit();
|
||||||
GSMgr::Instance()->UnInit();
|
GSMgr::Instance()->UnInit();
|
||||||
IMListener::Instance()->UnInit();
|
IMListener::Instance()->UnInit();
|
||||||
@ -125,14 +128,10 @@ void App::UnInit()
|
|||||||
f8::TGLog::Instance()->UnInit();
|
f8::TGLog::Instance()->UnInit();
|
||||||
UnInitLog();
|
UnInitLog();
|
||||||
|
|
||||||
delete im_msg_mutex_;
|
A8_SAFE_DELETE(im_msg_mutex_);
|
||||||
im_msg_mutex_ = nullptr;
|
A8_SAFE_DELETE(msg_mutex_);
|
||||||
delete msg_mutex_;
|
A8_SAFE_DELETE(loop_cond_);
|
||||||
msg_mutex_ = nullptr;
|
A8_SAFE_DELETE(loop_mutex_);
|
||||||
delete loop_cond_;
|
|
||||||
loop_cond_ = nullptr;
|
|
||||||
delete loop_mutex_;
|
|
||||||
loop_mutex_ = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int App::Run()
|
int App::Run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user