summaryrefslogtreecommitdiff
path: root/sql/threadpool.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-12-19 13:28:30 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-12-19 13:28:30 +0100
commitdf48c9bf20955c4e49009c95c5c7e1856c212e81 (patch)
treef39850b5c53f661416a4923c0d0ba869449ebbcd /sql/threadpool.h
parent2e4bde4c0febf1282639ce2f13e24c707e1f45b0 (diff)
downloadmariadb-git-df48c9bf20955c4e49009c95c5c7e1856c212e81.tar.gz
allow changing thread_pool_size without server restart
Diffstat (limited to 'sql/threadpool.h')
-rw-r--r--sql/threadpool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h
index fa8f1c4fbea..4272d9a11f1 100644
--- a/sql/threadpool.h
+++ b/sql/threadpool.h
@@ -1,4 +1,6 @@
+#define MAX_THREAD_GROUPS 128
+
/* Threadpool parameters */
extern uint threadpool_min_threads; /* Minimum threads in pool */
extern uint threadpool_idle_timeout; /* Shutdown idle worker threads after this timeout */
@@ -38,6 +40,7 @@ extern TP_STATISTICS tp_stats;
/* Functions to set threadpool parameters */
extern void tp_set_min_threads(uint val);
extern void tp_set_max_threads(uint val);
+extern int tp_set_threadpool_size(uint val);
/* Activate threadpool scheduler */
extern void tp_scheduler(void);