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 | 1f98634371838cc94d01613497660937f70ff78b (patch) | |
| tree | 7760b21a8fe3a407d49b531994784e43fcd87894 /src/core/hle/kernel/k_light_lock.cpp | |
| parent | b4b3454d9bc4c1e0a41708e82d70b8379fef62cc (diff) | |
| parent | 97f7f7bad59cdd42bf5f504089e5cecd441da3ce (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 d791acbe3..14cb615da 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); |
