diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-11-25 18:17:28 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-11-25 18:17:28 +0100 |
commit | 65ca700def99289cc31a7040537f5aa6e12bf485 (patch) | |
tree | 97b3a07299b626c519da0e80c122b5b79b933914 /sql/scheduler.h | |
parent | 2ab57de38d13d927ddff2d51aed4af34e13998f5 (diff) | |
parent | 6e5bcca7935d3c62f84bb640e5357664a210ee12 (diff) | |
download | mariadb-git-65ca700def99289cc31a7040537f5aa6e12bf485.tar.gz |
merge.
checkpoint.
does not compile.
Diffstat (limited to 'sql/scheduler.h')
-rw-r--r-- | sql/scheduler.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/scheduler.h b/sql/scheduler.h index 40f0e28bc2c..32ba3e63953 100644 --- a/sql/scheduler.h +++ b/sql/scheduler.h @@ -30,7 +30,8 @@ class THD; struct scheduler_functions { - uint max_threads; + uint max_threads, *connection_count; + ulong *max_connections; bool (*init)(void); bool (*init_new_connection_thread)(void); void (*add_connection)(THD *thd); @@ -62,8 +63,8 @@ enum scheduler_types SCHEDULER_TYPES_COUNT }; -void one_thread_per_connection_scheduler(); -void one_thread_scheduler(); +scheduler_functions *one_thread_per_connection_scheduler(ulong *, uint *); +scheduler_functions *one_thread_scheduler(); enum pool_command_op { @@ -99,6 +100,4 @@ public: ~thd_scheduler(); }; -extern scheduler_functions *thread_scheduler; - #endif |