diff options
author | Subv <subv2112@gmail.com> | 2015-05-11 19:38:10 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-05-11 19:38:10 -0500 |
commit | dbc1320923fb69dffce1b8ebfdfbed070ffddf69 (patch) | |
tree | 8a86500395a5431adbd0d97674aeb7e1bbdc588a /src | |
parent | 10eb8b0c02badb2f87ec2d71f1679a27b679c171 (diff) |
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 957cbdfee1..0503e50895 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; } |