search for: 632df86

Displaying 2 results from an estimated 2 matches for "632df86".

Did you mean: 632df867
2019 May 20
0
[nbdkit PATCH 1/2] plugins: Add .thread_model callback
...The server may reorder replies, +answering a later request before an earlier one. All the libraries you use must be thread-safe and reentrant. You may also need to provide mutexes for fields in your connection handle. diff --git a/include/nbdkit-plugin.h b/include/nbdkit-plugin.h index e9b1808..632df86 100644 --- a/include/nbdkit-plugin.h +++ b/include/nbdkit-plugin.h @@ -130,6 +130,8 @@ struct nbdkit_plugin { struct nbdkit_extents *extents); int (*can_cache) (void *handle); int (*cache) (void *handle, uint32_t count, uint64_t offset, uint32_t flags); + + int (*thread_mo...
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