diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-02-14 18:30:39 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-02-14 18:30:39 +0100 |
commit | 4df0249b9acc2c79c450c3836ae60f3e9076ae6e (patch) | |
tree | d210a4c39cd85f0eda84f301eaa92d910252ca2c /sql/threadpool.h | |
parent | a1542f8a57390bbad916ddfd335e1c751ffb3de5 (diff) | |
download | mariadb-git-4df0249b9acc2c79c450c3836ae60f3e9076ae6e.tar.gz |
MDEV-24341 Innodb - do not block in foreground thread in log_write_up_to(
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 11132b3bf95..7737d056b4a 100644 --- a/sql/threadpool.h +++ b/sql/threadpool.h @@ -133,6 +133,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 @@ -146,6 +147,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 @@ -159,6 +161,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 */ |