diff options
| author | 2015-05-11 19:38:10 -0500 | |
|---|---|---|
| committer | 2015-05-11 19:38:10 -0500 | |
| commit | dbc1320923fb69dffce1b8ebfdfbed070ffddf69 (patch) | |
| tree | 8a86500395a5431adbd0d97674aeb7e1bbdc588a /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #749 from yuriks/stack-top (diff) | |
| download | yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.gz yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.tar.xz yuzu-dbc1320923fb69dffce1b8ebfdfbed070ffddf69.zip | |
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 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) { | |||
| 439 | // If thread was ready, adjust queues | 439 | // If thread was ready, adjust queues |
| 440 | if (status == THREADSTATUS_READY) | 440 | if (status == THREADSTATUS_READY) |
| 441 | ready_queue.move(this, current_priority, priority); | 441 | ready_queue.move(this, current_priority, priority); |
| 442 | else | ||
| 443 | ready_queue.prepare(priority); | ||
| 442 | 444 | ||
| 443 | nominal_priority = current_priority = priority; | 445 | nominal_priority = current_priority = priority; |
| 444 | } | 446 | } |