How to know if all pending tevent_req requests have completed?

Jeremy Allison jra at samba.org
Thu Feb 23 19:39:06 UTC 2017


On Thu, Feb 23, 2017 at 08:30:56PM +0100, Stefan Metzmacher wrote:
> Am 23.02.2017 um 20:12 schrieb Jeremy Allison:
> >>
> >> tevent_common_have_events() is used to break out of
> >>
> >> tevent_loop_wait(ev);
> >> so you may just want to use that and wait for it to return.
> > 
> > Isn't that an internal API though for use only by
> > tevent backend implementors ?
> > 
> > I thought we wouldn't want to make any external
> > callers dependent on such a thing.
> 
> tevent_loop_once() and tevent_loop_wait()
> are public functions.

Doh. Never mind, I thought you were suggesting
using tevent_common_have_events(), not
tevent_loop_once() or tevent_loop_wait().

EREADERTOOSTUPID :-).

Thanks.



More information about the samba-technical mailing list