1
This commit is contained in:
parent
9ed869fd3f
commit
7e07d0641a
@ -206,6 +206,7 @@ private:
|
|||||||
|
|
||||||
void DBPool::Init()
|
void DBPool::Init()
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
#if 1
|
#if 1
|
||||||
/*mysql_init()不是完全线程安全的,但是只要成功调用一次就后就线程安全了,
|
/*mysql_init()不是完全线程安全的,但是只要成功调用一次就后就线程安全了,
|
||||||
如果有多线程并发使用mysql_init(),建议在程序初始化时空调一次mysql_init(),他的这点特性很像qsort()
|
如果有多线程并发使用mysql_init(),建议在程序初始化时空调一次mysql_init(),他的这点特性很像qsort()
|
||||||
@ -219,6 +220,7 @@ void DBPool::Init()
|
|||||||
db_thread->Init();
|
db_thread->Init();
|
||||||
db_thread_pool_.push_back(db_thread);
|
db_thread_pool_.push_back(db_thread);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void DBPool::UnInit()
|
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)
|
void DBPool::_SS_GSM_ExecAsyncSql(f8::MsgHdr& hdr, const ss::SS_GSM_ExecAsyncSql& msg)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
DBThread *db_thread = db_single_thread_;
|
DBThread *db_thread = db_single_thread_;
|
||||||
switch (msg.exec_type()) {
|
switch (msg.exec_type()) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -267,4 +270,5 @@ void DBPool::_SS_GSM_ExecAsyncSql(f8::MsgHdr& hdr, const ss::SS_GSM_ExecAsyncSql
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user