Procházet zdrojové kódy

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

Subv před 11 roky
rodič
revize
dbc1320923
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
 }