diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-07-26 22:16:55 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-07-28 21:24:55 +0200 |
commit | 51cd130eeabe1fa5886ba33f68b0f9cb54dec518 (patch) | |
tree | 837a560066e478511f06ef6b2ad380d117188c6e /sql/threadpool.h | |
parent | 56990b18d914b8150c9f777d134724d2b3390360 (diff) | |
download | mariadb-git-10.6-wlad.tar.gz |
WIP10.6-wlad
Diffstat (limited to 'sql/threadpool.h')
-rw-r--r-- | sql/threadpool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h index 285b46e3b27..b1c26630812 100644 --- a/sql/threadpool.h +++ b/sql/threadpool.h @@ -132,6 +132,7 @@ struct TP_pool virtual int set_stall_limit(uint){ return 0; } virtual int get_thread_count() { return tp_stats.num_worker_threads; } virtual int get_idle_thread_count(){ return 0; } + virtual void resume(TP_connection* c)=0; }; #ifdef _WIN32 @@ -145,6 +146,7 @@ struct TP_pool_win:TP_pool virtual void add(TP_connection *); virtual int set_max_threads(uint); virtual int set_min_threads(uint); + void resume(TP_connection *c); }; #endif @@ -158,6 +160,7 @@ struct TP_pool_generic :TP_pool virtual int set_pool_size(uint); virtual int set_stall_limit(uint); virtual int get_idle_thread_count(); + void resume(TP_connection* c); }; #endif /* HAVE_POOL_OF_THREADS */ |