search for: free_closur

Displaying 2 results from an estimated 2 matches for "free_closur".

Did you mean: free_closure
2019 Jul 20
2
[libnbd] More thoughts on callbacks and more
...tc. following on from: https://www.redhat.com/archives/libguestfs/2019-July/thread.html#00184 Closure lifetimes ----------------- Closures could have a lifetime if we had a little bit of support from the C library. We would generate (from C only): nbd_set_free_<fn>_<closure> (nbd, free_closure); which calls free_closure (user_data) as soon as the closure will no longer be called by the library. This function would be used to decrement the refcount from Python or remove the global root from OCaml. Note this is a family of functions, eg: nbd_set_free_set_debug_callback_debug_fn cor...
2019 Jul 22
0
Re: [libnbd] More thoughts on callbacks and more
...t.com/archives/libguestfs/2019-July/thread.html#00184 > > Closure lifetimes > ----------------- > > Closures could have a lifetime if we had a little bit of support from > the C library. We would generate (from C only): > > nbd_set_free_<fn>_<closure> (nbd, free_closure); > > which calls free_closure (user_data) as soon as the closure will no > longer be called by the library. This function would be used to > decrement the refcount from Python or remove the global root from > OCaml. > > Note this is a family of functions, eg: > >...