From 2b2d6ad0541544074fd54c86af6de2e2947e62ce Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 21 Jun 2020 23:42:05 +0200 Subject: Move mcast task to a per-server task to get refcounting right --- uring.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'uring.c') diff --git a/uring.c b/uring.c index f08ba9e..88309f8 100644 --- a/uring.c +++ b/uring.c @@ -112,8 +112,8 @@ uring_task_put(struct cfg *cfg, struct uring_task *task) assert_return(cfg && task); - debug(DBG_REF, "task %s (%p), refcount %u", - task->name, task, task->refcount); + debug(DBG_REF, "task %s (%p), refcount %u -> %u", + task->name, task, task->refcount, task->refcount - 1); task->refcount--; @@ -144,8 +144,8 @@ uring_task_get(struct cfg *cfg, struct uring_task *task) { assert_return(cfg && task); - debug(DBG_REF, "task %s (%p), refcount %u", - task->name, task, task->refcount); + debug(DBG_REF, "task %s (%p), refcount %u -> %u", + task->name, task, task->refcount, task->refcount + 1); if (task->refcount < 0) error("Negative refcount!"); -- cgit v1.2.3