Просмотр исходного кода

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

Subv 11 лет назад
Родитель
Сommit
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;
 }