diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-11 22:54:00 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-11 22:54:00 -0400 |
commit | 6e26d063a57070cecb0e8d5c1905f5573588be61 (patch) | |
tree | 83783820806e0830a889c0fa557a95073fb60197 /src | |
parent | 6223496a49d141bacf07ea0a68e80712d7766af2 (diff) | |
parent | dbc1320923fb69dffce1b8ebfdfbed070ffddf69 (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')
-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 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; } |