summaryrefslogtreecommitdiff
path: root/sql/threadpool.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/threadpool.h
parentb1422b8f1b2e93de2ec548c81df5609dd5996515 (diff)
downloadmariadb-git-d50649ecf787d4adf80544e892a00a709db37f32.tar.gz
small cleanups
Diffstat (limited to 'sql/threadpool.h')
-rw-r--r--sql/threadpool.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h
index 78112b8b7bc..2b0d09c0d6d 100644
--- a/sql/threadpool.h
+++ b/sql/threadpool.h
@@ -10,6 +10,12 @@ extern uint threadpool_max_threads; /* Maximum threads in pool */
extern uint threadpool_oversubscribe; /* Maximum active threads in group */
+
+/* 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);
+
/*
Functions used by scheduler.
OS-specific implementations are in