search for: 9a20663

Displaying 2 results from an estimated 2 matches for "9a20663".

2019 May 20
0
[nbdkit PATCH 1/2] plugins: Add .thread_model callback
...e <eblake@redhat.com> --- docs/nbdkit-plugin.pod | 33 +++++++++++++++++++++++++++++---- include/nbdkit-plugin.h | 2 ++ server/plugins.c | 12 +++++++++++- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/docs/nbdkit-plugin.pod b/docs/nbdkit-plugin.pod index 7f83234..9a20663 100644 --- a/docs/nbdkit-plugin.pod +++ b/docs/nbdkit-plugin.pod @@ -133,6 +133,12 @@ has been passed to the plugin. Both are called after loading the plugin but before any connections are accepted. +=item C<.thread_model> + +C<.thread_model> is called once after all configuration in...
2019 May 20
3
[nbdkit PATCH 0/2] More on .thread_model
Rich pointed out that making thread_model dynamic even for plugins makes some sense, so here is the code for doing it for 'sh'. I'm less confident on how to do it for OCaml and Rust (not to mention that those allow the plugin to already compile in their model, rather than the language binding glue forcing a model). The other languages (lua, perl, python, ruby) still need to be