aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-05-11 22:54:00 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-05-11 22:54:00 -0400
commit6e26d063a57070cecb0e8d5c1905f5573588be61 (patch)
tree83783820806e0830a889c0fa557a95073fb60197 /src/core/hle/kernel/thread.cpp
parent6223496a49d141bacf07ea0a68e80712d7766af2 (diff)
parentdbc1320923fb69dffce1b8ebfdfbed070ffddf69 (diff)
Merge pull request #757 from Subv/scheduling
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index ab69a426..3e70d399 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/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;
}