mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 21:58:45 +00:00
semaphore: Fix returned iterator from AddWaiter (#1614)
This commit is contained in:
@@ -165,8 +165,7 @@ public:
|
|||||||
while (it != wait_list.end() && (*it)->priority > waiter->priority) {
|
while (it != wait_list.end() && (*it)->priority > waiter->priority) {
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
wait_list.insert(it, waiter);
|
return wait_list.insert(it, waiter);
|
||||||
return it;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitList wait_list;
|
WaitList wait_list;
|
||||||
|
|||||||
Reference in New Issue
Block a user