Skip to content

Commit

Permalink
semaphore: Fix returned iterator from AddWaiter
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus committed Nov 28, 2024
1 parent bd3371b commit 6401b60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/libraries/kernel/threads/semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ class OrbisSem {
while (it != wait_list.end() && (*it)->priority > waiter->priority) {
++it;
}
wait_list.insert(it, waiter);
return it;
return wait_list.insert(it, waiter);
}

WaitList wait_list;
Expand Down

0 comments on commit 6401b60

Please sign in to comment.