aboutsummaryrefslogtreecommitdiff
path: root/src/lib/evloop/workqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evloop/workqueue.h')
-rw-r--r--src/lib/evloop/workqueue.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evloop/workqueue.h b/src/lib/evloop/workqueue.h
index 9ed504249a..cd892a14c8 100644
--- a/src/lib/evloop/workqueue.h
+++ b/src/lib/evloop/workqueue.h
@@ -58,7 +58,9 @@ threadpool_t *threadpool_new(int n_threads,
void *(*new_thread_state_fn)(void*),
void (*free_thread_state_fn)(void*),
void *arg);
-void threadpool_free(threadpool_t *tp);
+void threadpool_free_(threadpool_t *tp);
+#define threadpool_free(pool) \
+ FREE_AND_NULL(threadpool_t, threadpool_free_, (pool))
replyqueue_t *threadpool_get_replyqueue(threadpool_t *tp);
replyqueue_t *replyqueue_new(uint32_t alertsocks_flags);