diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-21 23:42:05 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-21 23:42:05 +0200 |
commit | 2b2d6ad0541544074fd54c86af6de2e2947e62ce (patch) | |
tree | 84dee7bca11631193a86ee62e50916a3adc32ef4 /uring.c | |
parent | 0ba4f18ea6981b4d2b4eded11b2da4b2a2192d5b (diff) |
Move mcast task to a per-server task to get refcounting right
Diffstat (limited to 'uring.c')
-rw-r--r-- | uring.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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!"); |