diff options
| author | bunnei <bunneidev@gmail.com> | 2023-03-03 14:42:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-03 14:42:00 -0800 |
| commit | 437cc6eb6361eeab3b6e30ff28554bde6981dba3 (patch) | |
| tree | 7760b21a8fe3a407d49b531994784e43fcd87894 /src/core/hle/kernel/k_light_lock.cpp | |
| parent | 282459a5f7d300a194c90bae8446810ef17d4b8f (diff) | |
| parent | 63414faea480d7a2663a1d45fb67780d9b2f8eaa (diff) | |
Merge pull request #9855 from liamwhite/kern-16-support
kernel: support for 16.0.0
Diffstat (limited to 'src/core/hle/kernel/k_light_lock.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_light_lock.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_light_lock.cpp b/src/core/hle/kernel/k_light_lock.cpp index d791acbe32..14cb615da7 100644 --- a/src/core/hle/kernel/k_light_lock.cpp +++ b/src/core/hle/kernel/k_light_lock.cpp @@ -90,15 +90,15 @@ void KLightLock::UnlockSlowPath(uintptr_t _cur_thread) { KScopedSchedulerLock sl(kernel); // Get the next owner. - s32 num_waiters; - KThread* next_owner = owner_thread->RemoveWaiterByKey( - std::addressof(num_waiters), reinterpret_cast<uintptr_t>(std::addressof(tag))); + bool has_waiters; + KThread* next_owner = owner_thread->RemoveKernelWaiterByKey( + std::addressof(has_waiters), reinterpret_cast<uintptr_t>(std::addressof(tag))); // Pass the lock to the next owner. uintptr_t next_tag = 0; if (next_owner != nullptr) { next_tag = - reinterpret_cast<uintptr_t>(next_owner) | static_cast<uintptr_t>(num_waiters > 1); + reinterpret_cast<uintptr_t>(next_owner) | static_cast<uintptr_t>(has_waiters); next_owner->EndWait(ResultSuccess); |
