summaryrefslogtreecommitdiff
path: root/sql/scheduler.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-12-08 19:17:49 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-12-08 19:17:49 +0100
commite91bbca5fb080a8d988c156d78c7dc1b1daaad82 (patch)
treeedeb15da451e956ae0d6874657c910ab0df111f8 /sql/scheduler.cc
parent5e7b949e61f4330e27013c8ec81fa3d450e5dce6 (diff)
downloadmariadb-git-e91bbca5fb080a8d988c156d78c7dc1b1daaad82.tar.gz
Initial threadpool implementation for MariaDB 5.5
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r--sql/scheduler.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc
index f04fdef39f9..c174d300d2e 100644
--- a/sql/scheduler.cc
+++ b/sql/scheduler.cc
@@ -79,7 +79,7 @@ static void scheduler_wait_sync_end(void) {
one_thread_scheduler() or one_thread_per_connection_scheduler() in
mysqld.cc, so this init function will always be called.
*/
-static void scheduler_init() {
+void scheduler_init() {
thr_set_lock_wait_callback(scheduler_wait_lock_begin,
scheduler_wait_lock_end);
thr_set_sync_wait_callback(scheduler_wait_sync_begin,
@@ -124,25 +124,6 @@ void one_thread_scheduler(scheduler_functions *func)
}
-#ifdef HAVE_POOL_OF_THREADS
-
-/*
- thd_scheduler keeps the link between THD and events.
- It's embedded in the THD class.
-*/
-
-thd_scheduler::thd_scheduler()
- : m_psi(NULL), logged_in(FALSE), io_event(NULL), thread_attached(FALSE)
-{
-}
-
-
-thd_scheduler::~thd_scheduler()
-{
- my_free(io_event);
-}
-
-#endif
/*
no pluggable schedulers in mariadb.