add dbhelper
This commit is contained in:
parent
2a76ccfdb4
commit
e0d0382d26
@ -21,6 +21,7 @@
|
||||
#include "playermgr.h"
|
||||
#include "groupmgr.h"
|
||||
#include "dbengine.h"
|
||||
#include "dbhelper.h"
|
||||
#include "perfmonitor.h"
|
||||
|
||||
#include "MSConnMgr.h"
|
||||
@ -93,6 +94,7 @@ bool App::Init(int argc, char* argv[])
|
||||
PlayerMgr::Instance()->Init();
|
||||
GroupMgr::Instance()->Init();
|
||||
DBEngine::Instance()->Init();
|
||||
DBHelper::Instance()->Init();
|
||||
|
||||
a8::UdpLog::Instance()->Info("friend_imserver starting instance_id:%d pid:%d ",
|
||||
{
|
||||
@ -127,6 +129,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()});
|
||||
DBHelper::Instance()->UnInit();
|
||||
DBEngine::Instance()->UnInit();
|
||||
GroupMgr::Instance()->UnInit();
|
||||
PlayerMgr::Instance()->UnInit();
|
||||
|
13
server/imserver/dbhelper.cc
Normal file
13
server/imserver/dbhelper.cc
Normal file
@ -0,0 +1,13 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "dbengine.h"
|
||||
|
||||
#include "dbhelper.h"
|
||||
|
||||
void DBHelper::Init()
|
||||
{
|
||||
}
|
||||
|
||||
void DBHelper::UnInit()
|
||||
{
|
||||
}
|
14
server/imserver/dbhelper.h
Normal file
14
server/imserver/dbhelper.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
class DBHelper : public a8::Singleton<DBHelper>
|
||||
{
|
||||
private:
|
||||
DBHelper() {};
|
||||
friend class a8::Singleton<DBHelper>;
|
||||
|
||||
public:
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user