summaryrefslogtreecommitdiff
path: root/sql/scheduler.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-01-24 03:23:14 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-01-24 03:23:14 +0100
commitd50649ecf787d4adf80544e892a00a709db37f32 (patch)
treeda2bb539c5abd8fb2103b0eb049f4c43e3b12218 /sql/scheduler.h
parentb1422b8f1b2e93de2ec548c81df5609dd5996515 (diff)
downloadmariadb-git-d50649ecf787d4adf80544e892a00a709db37f32.tar.gz
small cleanups
Diffstat (limited to 'sql/scheduler.h')
-rw-r--r--sql/scheduler.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/sql/scheduler.h b/sql/scheduler.h
index c91df8512ab..302ccd7ab11 100644
--- a/sql/scheduler.h
+++ b/sql/scheduler.h
@@ -95,26 +95,8 @@ public:
*/
PSI_thread *m_psi;
void *data; /* scheduler-specific data structure */
-#ifndef DBUG_OFF
- bool set_explain;
- char dbug_explain[512];
-#endif
};
-void *thd_get_scheduler_data(THD *thd);
-void thd_set_scheduler_data(THD *thd, void *data);
-PSI_thread* thd_get_psi(THD *thd);
-void thd_set_psi(THD *thd, PSI_thread *psi);
-
-/* Common thread pool routines, suitable for different implementations */
-extern void threadpool_remove_connection(THD *thd);
-extern int threadpool_process_request(THD *thd);
-extern int threadpool_add_connection(THD *thd);
-
-
-extern scheduler_functions *thread_scheduler;
-#endif /* SCHEDULER_INCLUDED */
-
#if !defined(EMBEDDED_LIBRARY)
#define HAVE_POOL_OF_THREADS 1
void pool_of_threads_scheduler(scheduler_functions* func,
@@ -124,3 +106,5 @@ void pool_of_threads_scheduler(scheduler_functions* func,
#define pool_of_threads_scheduler(A,B,C) \
one_thread_per_connection_scheduler(A, B, C)
#endif
+
+#endif /* SCHEDULER_INCLUDED */