summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-01-24 02:31:03 +0100
committerLiam <byteslice@airmail.cc>2023-01-24 02:31:03 +0100
commit693cad8e9b45cb61370bbc05e8e0022ea42044f9 (patch)
tree7a64dd5d228f3d1611f6df381504ace9a9bf863a /src/core/hle/kernel/k_thread.cpp
parentkernel: fix incorrect locking order in suspension (diff)
downloadyuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar.gz
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar.bz2
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar.lz
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar.xz
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.tar.zst
yuzu-693cad8e9b45cb61370bbc05e8e0022ea42044f9.zip
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 7c7c2459c..84ff3c64b 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -330,7 +330,7 @@ void KThread::Finalize() {
KThread* const waiter = std::addressof(*it);
// The thread shouldn't be a kernel waiter.
- ASSERT(!IsKernelAddressKey(waiter->GetAddressKey()));
+ ASSERT(!waiter->GetAddressKeyIsKernel());
// Clear the lock owner.
waiter->SetLockOwner(nullptr);
@@ -884,7 +884,7 @@ void KThread::AddWaiterImpl(KThread* thread) {
}
// Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
+ if (thread->GetAddressKeyIsKernel()) {
ASSERT((num_kernel_waiters++) >= 0);
KScheduler::SetSchedulerUpdateNeeded(kernel);
}
@@ -898,7 +898,7 @@ void KThread::RemoveWaiterImpl(KThread* thread) {
ASSERT(kernel.GlobalSchedulerContext().IsLocked());
// Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
+ if (thread->GetAddressKeyIsKernel()) {
ASSERT((num_kernel_waiters--) > 0);
KScheduler::SetSchedulerUpdateNeeded(kernel);
}
@@ -974,7 +974,7 @@ KThread* KThread::RemoveWaiterByKey(s32* out_num_waiters, VAddr key) {
KThread* thread = std::addressof(*it);
// Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
+ if (thread->GetAddressKeyIsKernel()) {
ASSERT((num_kernel_waiters--) > 0);
KScheduler::SetSchedulerUpdateNeeded(kernel);
}