فهرست منبع

Merge pull request #757 from Subv/scheduling

Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
bunnei 11 سال پیش
والد
کامیت
6e26d063a5
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/core/hle/kernel/thread.cpp

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

@@ -441,6 +441,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;
 }