]> sourceware.org Git - newlib-cygwin.git/commit
cygserver: raise number of worker threads on demand
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 24 Mar 2017 15:18:26 +0000 (16:18 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 24 Mar 2017 15:18:26 +0000 (16:18 +0100)
commit0b73dba4de3fdadde499edfbc7ca9d9a01c11487
tree03baebc7cd06a2b49185479ee98643b4c3a986cb
parent838eaf6674b1350888b9803290fbf17628ac32ec
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 <corinna@vinschen.de>
winsup/cygserver/threaded_queue.cc
winsup/cygserver/threaded_queue.h
This page took 0.031428 seconds and 5 git commands to generate.