pthreadpool: split out pthreadpool_tevent_job from pthreadpool_tevent_job_state
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2018 23:39:47 +0000 (01:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 12:25:19 +0000 (14:25 +0200)
commit245d684d28dab630f3d47ff61006a1fe3e5eeefa
tree8e87c48523d01e60cd57e58a37f5a291c9048f65
parentcdbad9041b8afd3f0436fbeb5d6b50f9f1ada60d
pthreadpool: split out pthreadpool_tevent_job from pthreadpool_tevent_job_state

This makes it much easier to handle orphaned jobs,
we either wait for the immediate tevent to trigger
or we just keep leaking the memory.

The next commits will improve this further.

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