aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Subv <subv2112@gmail.com>2015-05-11 19:38:10 -0500
committerGravatar Subv <subv2112@gmail.com>2015-05-11 19:38:10 -0500
commitdbc1320923fb69dffce1b8ebfdfbed070ffddf69 (patch)
tree8a86500395a5431adbd0d97674aeb7e1bbdc588a /src/core/hle/kernel/thread.cpp
parent10eb8b0c02badb2f87ec2d71f1679a27b679c171 (diff)
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 957cbdfe..0503e508 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/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;
}