From 0b73dba4de3fdadde499edfbc7ca9d9a01c11487 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 24 Mar 2017 16:18:26 +0100 Subject: cygserver: raise number of worker threads on demand The number of threads in the worker pool is fixed so far. This is a problem in XSI IPC scenarions with an unknown number of consumers. It doesn't make sense to make the pool very big for a start, but when the need arises, we need to make sure we can serve the request even if all other worker threads are in a wait state. This patch changes threaded_queue to just add another worker thread if all current workers are busy. Signed-off-by: Corinna Vinschen --- winsup/cygserver/threaded_queue.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygserver/threaded_queue.h') diff --git a/winsup/cygserver/threaded_queue.h b/winsup/cygserver/threaded_queue.h index 8a8543058..44819d2fb 100644 --- a/winsup/cygserver/threaded_queue.h +++ b/winsup/cygserver/threaded_queue.h @@ -49,6 +49,7 @@ public: private: LONG _workers_count; + LONG _workers_busy; bool _running; queue_submission_loop *_submitters_head; -- cgit v1.2.3