summaryrefslogtreecommitdiff
path: root/sql/threadpool.h
diff options
context:
space:
mode:
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 7737d056b4a..fc060f9ee06 100644
--- a/sql/threadpool.h
+++ b/sql/threadpool.h
@@ -134,6 +134,7 @@ struct TP_pool
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;
+ virtual int wake(TP_connection *c)= 0;
};
#ifdef _WIN32
@@ -148,6 +149,7 @@ struct TP_pool_win:TP_pool
virtual int set_max_threads(uint);
virtual int set_min_threads(uint);
void resume(TP_connection *c);
+ int wake(TP_connection *c);
};
#endif
@@ -162,6 +164,7 @@ struct TP_pool_generic :TP_pool
virtual int set_stall_limit(uint);
virtual int get_idle_thread_count();
void resume(TP_connection* c);
+ int wake(TP_connection *c);
};
#endif /* HAVE_POOL_OF_THREADS */