Displaying 2 results from an estimated 2 matches for "nbdkit_open_connect".
2020 Feb 10
3
nbdkit background threads
...d to
another thread.
(https://github.com/libguestfs/nbdkit/blob/master/docs/nbdkit-filter.pod#next-plugin)
The seemingly obvious implementation - which is what I tried today -
would be to let filters create background threads in .config_complete.
We would provide a filter API something like:
int nbdkit_open_connection (struct nbdkit_next_ops **next_ops,
void **nxdata,
/* needs a close function */);
It would return a next_ops and nxdata that the filter could then use
to make data calls from the background thread into the underlying
layers.
To ensure safe unloading of filt...
2020 Feb 10
0
Re: nbdkit background threads
...ial solution towards the rest of your goal of
having threading available.
>
> The seemingly obvious implementation - which is what I tried today -
> would be to let filters create background threads in .config_complete.
> We would provide a filter API something like:
>
> int nbdkit_open_connection (struct nbdkit_next_ops **next_ops,
> void **nxdata,
> /* needs a close function */);
>
> It would return a next_ops and nxdata that the filter could then use
> to make data calls from the background thread into the underlying
> layers.
&g...