Explorar o código

Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called

Subv %!s(int64=11) %!d(string=hai) anos
pai
achega
dbc1320923
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/core/hle/kernel/thread.cpp

+ 2 - 0
src/core/hle/kernel/thread.cpp

@@ -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;
 }