diff options
author | bunnei <bunneidev@gmail.com> | 2022-06-26 20:38:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 20:38:48 +0200 |
commit | abfd690601eaa567b60c5eb844a688fe85e7dcea (patch) | |
tree | bb7cc7e8746ffedb0f8ddf2ca82c19ae41f5c1be /src/core/hle/kernel/k_address_arbiter.cpp | |
parent | Merge pull request #8500 from liamwhite/poke (diff) | |
parent | kernel: make current thread pointer thread local (diff) | |
download | yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar.gz yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar.bz2 yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar.lz yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar.xz yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.tar.zst yuzu-abfd690601eaa567b60c5eb844a688fe85e7dcea.zip |
Diffstat (limited to 'src/core/hle/kernel/k_address_arbiter.cpp')
-rw-r--r-- | src/core/hle/kernel/k_address_arbiter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_address_arbiter.cpp b/src/core/hle/kernel/k_address_arbiter.cpp index 04cf86d52..5fa67bae1 100644 --- a/src/core/hle/kernel/k_address_arbiter.cpp +++ b/src/core/hle/kernel/k_address_arbiter.cpp @@ -234,7 +234,7 @@ ResultCode KAddressArbiter::SignalAndModifyByWaitingCountIfEqual(VAddr addr, s32 ResultCode KAddressArbiter::WaitIfLessThan(VAddr addr, s32 value, bool decrement, s64 timeout) { // Prepare to wait. - KThread* cur_thread = kernel.CurrentScheduler()->GetCurrentThread(); + KThread* cur_thread = GetCurrentThreadPointer(kernel); ThreadQueueImplForKAddressArbiter wait_queue(kernel, std::addressof(thread_tree)); { @@ -287,7 +287,7 @@ ResultCode KAddressArbiter::WaitIfLessThan(VAddr addr, s32 value, bool decrement ResultCode KAddressArbiter::WaitIfEqual(VAddr addr, s32 value, s64 timeout) { // Prepare to wait. - KThread* cur_thread = kernel.CurrentScheduler()->GetCurrentThread(); + KThread* cur_thread = GetCurrentThreadPointer(kernel); ThreadQueueImplForKAddressArbiter wait_queue(kernel, std::addressof(thread_tree)); { |