1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
samba-mirror/lib/pthreadpool
Volker Lendecke dfc4670640 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
2017-12-13 04:46:12 +01:00
..
Makefile Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_pipe.c Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_pipe.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_sync.c Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_tevent.c pthreadpool: create a tevent_threaded_context per registered event context 2017-11-17 02:35:52 +01:00
pthreadpool_tevent.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool.c pthreadpool: Add some asserts 2017-12-13 00:44:56 +01:00
pthreadpool.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
tests_cmocka.c pthreadpool: Fix deadlock 2017-12-13 04:46:12 +01:00
tests.c pthreadpool: Add a test for the race condition fixed in the last commit 2017-12-09 20:28:11 +01:00
wscript_build pthreadpool: Add test for pthread_create failure 2017-12-08 13:54:20 +01:00