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 ab0e82ac2..7166e9b07 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -309,8 +309,16 @@ void Thread::UpdatePriority() { | |||
| 309 | return; | 309 | return; |
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | if (GetStatus() == ThreadStatus::WaitCondVar) { | ||
| 313 | owner_process->RemoveConditionVariableThread(this); | ||
| 314 | } | ||
| 315 | |||
| 312 | SetCurrentPriority(new_priority); | 316 | SetCurrentPriority(new_priority); |
| 313 | 317 | ||
| 318 | if (GetStatus() == ThreadStatus::WaitCondVar) { | ||
| 319 | owner_process->InsertConditionVariableThread(this); | ||
| 320 | } | ||
| 321 | |||
| 314 | if (!lock_owner) { | 322 | if (!lock_owner) { |
| 315 | return; | 323 | return; |
| 316 | } | 324 | } |