tevent: Make talloc_free safe when threaded_contexts exist
authorVolker Lendecke <vl@samba.org>
Wed, 7 Sep 2016 18:25:36 +0000 (20:25 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:21 +0000 (00:06 +0200)
commitd5cc7be95994b24f30b821cf5f666c9b9209400c
tree81b4bcf008e629311c713f553628ab7fb89e66f4
parent5b3019cb91f732f95f65c228a2483788f54faa8b
tevent: Make talloc_free safe when threaded_contexts exist

I did not find a way to do this safely without a mutex per threaded_context.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent.c
lib/tevent/tevent_internal.h
lib/tevent/tevent_threads.c