pthreadpool: split out a pthreadpool_stop() from pthreadpool_destroy()
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Apr 2018 12:03:30 +0000 (14:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 12:25:19 +0000 (14:25 +0200)
commitf19552e2390636518dc762bb9dfe25d3407dc521
tree2adefc70c1fa915a199e32b28d7d0a4fd691c02d
parent59768416148f72d87cba80ae21afbb2861ca9442
pthreadpool: split out a pthreadpool_stop() from pthreadpool_destroy()

This can be used in combination with pthreadpool_cancel_job() to
implement a multi step shutdown of the pool.

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