Skip to content

Commit

Permalink
async: fix re_async_cancel mqueue handling
Browse files Browse the repository at this point in the history
Since we can't clear/revert a mqueue_push, free list handling has always be
done by async queueh and not within re_async_cancel.
  • Loading branch information
sreimers committed Oct 31, 2023
1 parent aa13ac7 commit 0ed9dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/async/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void re_async_cancel(struct re_async *async, intptr_t id)
w->workh = NULL;
w->cb = NULL;
w->arg = mem_deref(w->arg);
list_move(&w->le, &async->freel);
/* No move to free list since queueh must always handled */
mtx_unlock(w->mtx);
}

Expand All @@ -351,7 +351,7 @@ void re_async_cancel(struct re_async *async, intptr_t id)
w->workh = NULL;
w->cb = NULL;
w->arg = mem_deref(w->arg);
list_move(&w->le, &async->freel);
/* No move to free list since queueh must always handled */
mtx_unlock(w->mtx);
}

Expand Down

0 comments on commit 0ed9dfd

Please sign in to comment.