pthreadpool: use strict sync processing only with max_threads=0
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2018 22:29:53 +0000 (00:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 12:25:18 +0000 (14:25 +0200)
commite45d33e92e47995faa7c523cf82dfb65efb190f8
tree59d536cd2b6691a077fe0d10a0edec5ca8ff0b33
parent03830a3226d43f13e58dcf68874d50e19793144d
pthreadpool: use strict sync processing only with max_threads=0

Otherwise it's an error if not at least one thread is possible.

This gives a much saner behaviour and doesn't end up with
unexpected sync processing.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/pthreadpool/pthreadpool.c