Skip to content

Commit

Permalink
fix workl handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Oct 31, 2023
1 parent 0ed9dfd commit 9ddd4b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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);
/* No move to free list since queueh must always handled */
list_move(&w->le, &async->freel);
mtx_unlock(w->mtx);
}

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

Expand Down

0 comments on commit 9ddd4b0

Please sign in to comment.