From bb00288aaa85043f1577000aa9721834643ed59a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 11 Feb 2019 15:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cpp/dbpool.cc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cpp/dbpool.cc b/cpp/dbpool.cc index 844f69a..a7b2000 100644 --- a/cpp/dbpool.cc +++ b/cpp/dbpool.cc @@ -75,29 +75,6 @@ namespace f8 work_thread_ = new std::thread(&DBThread::WorkThreadProc, this); } -#if 0 - void AddAsyncQuery(int sockhandle, int query_type, long long context_id, const std::string& sql) - { - AsyncQueryNode *p = new AsyncQueryNode(); - p->query_type = query_type; - p->socket_handle = sockhandle; - p->context_id = context_id; - p->sql = sql; - - std::unique_lock lk(*loop_mutex_); - msg_mutex_->lock(); - if (bot_node_) { - bot_node_->nextnode = p; - bot_node_ = p; - } else { - top_node_ = p; - bot_node_ = p; - } - msg_mutex_->unlock(); - loop_cond_->notify_all(); - } -#endif - void AddAsyncQuery(AsyncQueryNode* p) { std::unique_lock lk(*loop_mutex_);