add synchelper
This commit is contained in:
parent
78f685f1f4
commit
5cf022f2f1
@ -22,6 +22,7 @@
|
||||
#include "groupmgr.h"
|
||||
#include "dbengine.h"
|
||||
#include "dbhelper.h"
|
||||
#include "synchelper.h"
|
||||
#include "perfmonitor.h"
|
||||
|
||||
#include "MSConnMgr.h"
|
||||
@ -95,6 +96,7 @@ bool App::Init(int argc, char* argv[])
|
||||
GroupMgr::Instance()->Init();
|
||||
DBEngine::Instance()->Init();
|
||||
DBHelper::Instance()->Init();
|
||||
SyncHelper::Instance()->Init();
|
||||
|
||||
a8::UdpLog::Instance()->Info("friend_imserver starting instance_id:%d pid:%d ",
|
||||
{
|
||||
@ -129,6 +131,7 @@ bool App::Init(int argc, char* argv[])
|
||||
void App::UnInit()
|
||||
{
|
||||
a8::XPrintf("friend_imserver terminating instance_id:%d pid:%d\n", {instance_id, getpid()});
|
||||
SyncHelper::Instance()->UnInit();
|
||||
DBHelper::Instance()->UnInit();
|
||||
DBEngine::Instance()->UnInit();
|
||||
GroupMgr::Instance()->UnInit();
|
||||
|
15
server/imserver/synchelper.cc
Normal file
15
server/imserver/synchelper.cc
Normal file
@ -0,0 +1,15 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include <a8/openssl.h>
|
||||
|
||||
#include "synchelper.h"
|
||||
#include "player.h"
|
||||
#include "app.h"
|
||||
|
||||
void SyncHelper::Init()
|
||||
{
|
||||
}
|
||||
|
||||
void SyncHelper::UnInit()
|
||||
{
|
||||
}
|
13
server/imserver/synchelper.h
Normal file
13
server/imserver/synchelper.h
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
class Player;
|
||||
class SyncHelper : public a8::Singleton<SyncHelper>
|
||||
{
|
||||
private:
|
||||
SyncHelper() {};
|
||||
friend class a8::Singleton<SyncHelper>;
|
||||
|
||||
public:
|
||||
void Init();
|
||||
void UnInit();
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user