pthreadpool: Fix deadlock
authorVolker Lendecke <vl@samba.org>
Tue, 12 Dec 2017 22:07:39 +0000 (23:07 +0100)
committerChristof Schmitt <cs@samba.org>
Wed, 13 Dec 2017 03:46:12 +0000 (04:46 +0100)
commitdfc4670640341761b346065922a62a3e755e9e58
treea626ccb9428596cb35674c1f941206dd4374f632
parent6c9ac731df4099a061789448d19bcc93d25b0107
pthreadpool: Fix deadlock

Christof's idea from

https://lists.samba.org/archive/samba-technical/2017-December/124384.html

was that the thread already exited. It could also be that the thread is
not yet idle when the new pthreadpool_add_jobs comes around the corner.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Wed Dec 13 04:46:12 CET 2017 on sn-devel-144
lib/pthreadpool/tests_cmocka.c