summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-05-12 02:38:10 +0200
committerSubv <subv2112@gmail.com>2015-05-12 02:38:10 +0200
commitdbc1320923fb69dffce1b8ebfdfbed070ffddf69 (patch)
tree8a86500395a5431adbd0d97674aeb7e1bbdc588a /src/core/hle
parentMerge pull request #749 from yuriks/stack-top (diff)
downloadyuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.gz
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.bz2
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.lz
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.xz
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.zst
yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.zip
Diffstat (limited to 'src/core/hle')
-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 957cbdfee..0503e5089 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;
}