summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2021-01-24 22:53:01 -0800
committerGravatar bunnei2021-01-28 21:42:26 -0800
commit6ee8340a6b0fed897b6282690a8e3ceeab76f748 (patch)
tree6cabe369d766ccd08396baa9233e2c649831f5f8 /src/core
parentcore: arm: Remove unnecessary JIT checks. (diff)
downloadyuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.gz
yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.xz
yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.zip
hle: kernel: k_scheduler_lock: Cleanup.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_scheduler_lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_scheduler_lock.h b/src/core/hle/kernel/k_scheduler_lock.h
index 3b38f8f3e..169455d18 100644
--- a/src/core/hle/kernel/k_scheduler_lock.h
+++ b/src/core/hle/kernel/k_scheduler_lock.h
@@ -23,11 +23,11 @@ public:
23 explicit KAbstractSchedulerLock(KernelCore& kernel_) : kernel{kernel_} {} 23 explicit KAbstractSchedulerLock(KernelCore& kernel_) : kernel{kernel_} {}
24 24
25 bool IsLockedByCurrentThread() const { 25 bool IsLockedByCurrentThread() const {
26 return this->owner_thread == GetCurrentThreadPointer(kernel); 26 return owner_thread == GetCurrentThreadPointer(kernel);
27 } 27 }
28 28
29 void Lock() { 29 void Lock() {
30 if (this->IsLockedByCurrentThread()) { 30 if (IsLockedByCurrentThread()) {
31 // If we already own the lock, we can just increment the count. 31 // If we already own the lock, we can just increment the count.
32 ASSERT(lock_count > 0); 32 ASSERT(lock_count > 0);
33 lock_count++; 33 lock_count++;
@@ -47,7 +47,7 @@ public:
47 } 47 }
48 48
49 void Unlock() { 49 void Unlock() {
50 ASSERT(this->IsLockedByCurrentThread()); 50 ASSERT(IsLockedByCurrentThread());
51 ASSERT(lock_count > 0); 51 ASSERT(lock_count > 0);
52 52
53 // Release an instance of the lock. 53 // Release an instance of the lock.