summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-05-12 04:54:00 +0200
committerbunnei <bunneidev@gmail.com>2015-05-12 04:54:00 +0200
commit6e26d063a57070cecb0e8d5c1905f5573588be61 (patch)
tree83783820806e0830a889c0fa557a95073fb60197 /src/core/hle/kernel/thread.cpp
parentMerge pull request #752 from lioncash/flush (diff)
parentCore/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called (diff)
downloadyuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.gz
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.bz2
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.lz
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.xz
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.zst
yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.zip
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 ab69a4262..3e70d3995 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;
}