Displaying 2 results from an estimated 2 matches for "513d390".
2019 Apr 23
0
[nbdkit PATCH 3/4] filters: Utilize ACQUIRE_LOCK_FOR_CURRENT_SCOPE
...ilters/log/log.c | 10 ++++------
filters/readahead/readahead.c | 15 +++++----------
filters/log/Makefile.am | 5 ++++-
filters/readahead/Makefile.am | 5 ++++-
4 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/filters/log/log.c b/filters/log/log.c
index 02a2522..513d390 100644
--- a/filters/log/log.c
+++ b/filters/log/log.c
@@ -45,6 +45,8 @@
#include <nbdkit-filter.h>
+#include "cleanup.h"
+
#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL
static uint64_t connections;
@@ -114,12 +116,8 @@ struct handle {
static uint64_t
get_id (struct hand...
2019 Apr 23
8
[nbdkit PATCH 0/4] Start using cleanup macros in filters/plugins
There's more that can be done (in particular, use of CLEANUP_FREE),
but this is enough to at least see if I'm on the right track.
I couldn't figure out an obvious difference between common/include and
common/utils, but it looks like the former is for things that are
inlineable via .h only, while the latter is when you need to link in
a convenience library, so this landed in the