diff options
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index ee7531f2d..6dafa311d 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -306,8 +306,16 @@ void Thread::UpdatePriority() { | |||
| 306 | return; | 306 | return; |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | if (GetStatus() == ThreadStatus::WaitCondVar) { | ||
| 310 | owner_process->RemoveConditionVariableThread(this); | ||
| 311 | } | ||
| 312 | |||
| 309 | SetCurrentPriority(new_priority); | 313 | SetCurrentPriority(new_priority); |
| 310 | 314 | ||
| 315 | if (GetStatus() == ThreadStatus::WaitCondVar) { | ||
| 316 | owner_process->InsertConditionVariableThread(this); | ||
| 317 | } | ||
| 318 | |||
| 311 | if (!lock_owner) { | 319 | if (!lock_owner) { |
| 312 | return; | 320 | return; |
| 313 | } | 321 | } |