Преглед изворни кода

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

Subv пре 11 година
родитељ
комит
dbc1320923
1 измењених фајлова са 2 додато и 0 уклоњено
  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;
 }