Make it work even if max_idle_threads is set to 0
authorZhansong Gao <zhsgao@hotmail.com>
Wed, 30 Nov 2022 08:01:50 +0000 (16:01 +0800)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 1 Dec 2022 09:20:54 +0000 (09:20 +0000)
commit5aaec929a4e4fe1f3113e4dc6a1469090511207b
tree9029b2e6aa6abb605418771ef88c208b481b4a0a
parent777663953382925c7403f0560c28ec9bbd14d7be
Make it work even if max_idle_threads is set to 0

It may happen that none of the worker threads are running
if max_idle_threads is set to 0 although few people will do this.
Adding a limit of keeping at least one worker thread will make
our code more rigorous.

Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
lib/fuse_loop_mt.c