mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
semaphore: Invert priority order. (#3488)
* semaphore: Invert priority order. * playgo: Lower logs for some spammed functions.
This commit is contained in:
@@ -172,9 +172,9 @@ public:
|
||||
wait_list.push_back(waiter);
|
||||
return --wait_list.end();
|
||||
}
|
||||
// Find the first with priority less then us and insert right before it.
|
||||
// Find the first with lower priority (greater number) than us and insert right before it.
|
||||
auto it = wait_list.begin();
|
||||
while (it != wait_list.end() && (*it)->priority > waiter->priority) {
|
||||
while (it != wait_list.end() && (*it)->priority <= waiter->priority) {
|
||||
++it;
|
||||
}
|
||||
return wait_list.insert(it, waiter);
|
||||
|
||||
Reference in New Issue
Block a user