Skip to content

Commit

Permalink
use list_move
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 30, 2022
1 parent 6af85b0 commit 43c9888
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/async/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ static int worker_thread(void *arg)
continue;
}
le = list_head(&async->workl);
list_unlink(le);
list_append(&async->curl, le, le->data);
list_move(le, &async->curl);
mtx_unlock(&async->mtx);

work = le->data;
Expand Down

0 comments on commit 43c9888

Please sign in to comment.