[PATCH] Make server-side copy (copy-chunk) async
Jeremy Allison
jra at samba.org
Thu Mar 23 13:11:59 UTC 2017
On Thu, Mar 23, 2017 at 10:39:24AM +0100, Stefan Metzmacher wrote:
>
> The fact that the cancel function passed
> to tevent_req_set_cancel_fn() only gets the
> tevent_req *req pointer, makes it impossible to write a generic
> helper function on top of tevent.
So is it time for a tevent_req_set_cancel_fn_ex() that
allows a private pointer to be passed as well ?
Might that be a better/more general solution ?
> I think tevent_req_set_cancel_forwarding() is easy to use for
> all trivial cases where we do non parallel requests, which
> is the majority of all use cases.
>
> If someone has a more complex situation, it's only solvable
> via a custom cancel function.
OK, it's just a little ugly IMHO. As I said, I
can live with it :-).
More information about the samba-technical
mailing list