This commit is contained in:
aozhiwei 2019-01-14 18:53:08 +08:00
parent 9ed869fd3f
commit 7e07d0641a

View File

@ -206,6 +206,7 @@ private:
void DBPool::Init()
{
#if 0
#if 1
/*mysql_init()不是完全线程安全的,但是只要成功调用一次就后就线程安全了,
线使mysql_init()mysql_init()qsort()
@ -219,6 +220,7 @@ void DBPool::Init()
db_thread->Init();
db_thread_pool_.push_back(db_thread);
}
#endif
}
void DBPool::UnInit()
@ -237,6 +239,7 @@ void DBPool::_SS_Ping(f8::MsgHdr& hdr, const ss::SS_Ping& msg)
void DBPool::_SS_GSM_ExecAsyncSql(f8::MsgHdr& hdr, const ss::SS_GSM_ExecAsyncSql& msg)
{
#if 0
DBThread *db_thread = db_single_thread_;
switch (msg.exec_type()) {
case 0:
@ -267,4 +270,5 @@ void DBPool::_SS_GSM_ExecAsyncSql(f8::MsgHdr& hdr, const ss::SS_GSM_ExecAsyncSql
}
break;
}
#endif
}