pthreadpool: fix helgrind error in pthreadpool_free()
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2018 10:40:30 +0000 (12:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 12:25:18 +0000 (14:25 +0200)
commitf1dac71a866857bc70a0477861997cc6174a00d9
treeb01752bc18899f3a054e5cd7f3c1fd46c3bfc1d8
parentc9f54db10911762298d1d4fe681d0aaf705f6f55
pthreadpool: fix helgrind error in pthreadpool_free()

We need to pthread_mutex_lock/unlock the pool mutex
before we can destroy it.

The following test would trigger this.

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