Skip to content

Commit

Permalink
wait_task also checks _rq
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGuin committed Oct 16, 2023
1 parent 14bcfab commit 1477516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bthread/task_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool TaskGroup::wait_task(bthread_t* tid) {
return false;
}

if (pop_resume_task(tid) || steal_task(tid)) {
if (pop_resume_task(tid) || _rq.pop(tid) || steal_task(tid)) {
return true;
}

Expand Down

0 comments on commit 1477516

Please sign in to comment.