pthreadpool: add pthreadpool_restart_check[_monitor_{fd,drain}]()
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Jul 2018 12:43:01 +0000 (14:43 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 24 Jul 2018 15:38:28 +0000 (17:38 +0200)
commit3c4cdb290723432b00ff9ff88b892cb4e66e76cd
tree6a0f19f1469b062b68c4184f20c4add6366aa0a0
parentfbafdc99ef2cef11a1a28e795ffe965cb53ef7fa
pthreadpool: add pthreadpool_restart_check[_monitor_{fd,drain}]()

This makes it possible to monitor the pthreadpool for exited worker
threads and may restart new threads from the main thread again.

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