How to know if all pending tevent_req requests have completed?

Amitay Isaacs amitay at
Thu Feb 23 00:18:41 UTC 2017

Hi tevent experts,

tevent_req_poll() allows to wait for a specific request.

If I want to create n requests and wait for all of them to finish, is there
an easy way to do it?

Here is an example computation:

   ... run scripts one after the other ...

   if (timer expires) {

In this case, run_debug_send() computation is *not* hanging off the
run_event_send() request.
The calling code needs to know that run_event computation has timed out,
but doesn't really care whether debugging computation is over or not.  The
debug program can run in the background and log useful debug information
without affecting the caller.


More information about the samba-technical mailing list