mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 12:21:21 -08:00
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
This commit is contained in:
parent
10eb8b0c02
commit
dbc1320923
@ -439,6 +439,8 @@ void Thread::SetPriority(s32 priority) {
|
||||
// If thread was ready, adjust queues
|
||||
if (status == THREADSTATUS_READY)
|
||||
ready_queue.move(this, current_priority, priority);
|
||||
else
|
||||
ready_queue.prepare(priority);
|
||||
|
||||
nominal_priority = current_priority = priority;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user