mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-08-26 05:56:33 -05:00
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user