summaryrefslogtreecommitdiff
path: root/uring.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-21 23:42:05 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-21 23:42:05 +0200
commit2b2d6ad0541544074fd54c86af6de2e2947e62ce (patch)
tree84dee7bca11631193a86ee62e50916a3adc32ef4 /uring.c
parent0ba4f18ea6981b4d2b4eded11b2da4b2a2192d5b (diff)
Move mcast task to a per-server task to get refcounting right
Diffstat (limited to 'uring.c')
-rw-r--r--uring.c8
1 files changed, 4 insertions, 4 deletions
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!");