diff options
| author | 2015-05-11 22:54:00 -0400 | |
|---|---|---|
| committer | 2015-05-11 22:54:00 -0400 | |
| commit | 6e26d063a57070cecb0e8d5c1905f5573588be61 (patch) | |
| tree | 83783820806e0830a889c0fa557a95073fb60197 /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #752 from lioncash/flush (diff) | |
| parent | Core/Scheduling: Prepare the new priority in the thread queue when svcSetPrio... (diff) | |
| download | yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.gz yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.tar.xz yuzu-6e26d063a57070cecb0e8d5c1905f5573588be61.zip | |
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/core/hle/kernel/thread.cpp')
| -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 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) { | |||
| 441 | // If thread was ready, adjust queues | 441 | // If thread was ready, adjust queues |
| 442 | if (status == THREADSTATUS_READY) | 442 | if (status == THREADSTATUS_READY) |
| 443 | ready_queue.move(this, current_priority, priority); | 443 | ready_queue.move(this, current_priority, priority); |
| 444 | else | ||
| 445 | ready_queue.prepare(priority); | ||
| 444 | 446 | ||
| 445 | nominal_priority = current_priority = priority; | 447 | nominal_priority = current_priority = priority; |
| 446 | } | 448 | } |