diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-25 07:53:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | 6ee8340a6b0fed897b6282690a8e3ceeab76f748 (patch) | |
tree | 6cabe369d766ccd08396baa9233e2c649831f5f8 /src | |
parent | core: arm: Remove unnecessary JIT checks. (diff) | |
download | yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.gz yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.bz2 yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.lz yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.xz yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.tar.zst yuzu-6ee8340a6b0fed897b6282690a8e3ceeab76f748.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_scheduler_lock.h | 6 |
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: explicit KAbstractSchedulerLock(KernelCore& kernel_) : kernel{kernel_} {} bool IsLockedByCurrentThread() const { - return this->owner_thread == GetCurrentThreadPointer(kernel); + return owner_thread == GetCurrentThreadPointer(kernel); } void Lock() { - if (this->IsLockedByCurrentThread()) { + if (IsLockedByCurrentThread()) { // If we already own the lock, we can just increment the count. ASSERT(lock_count > 0); lock_count++; @@ -47,7 +47,7 @@ public: } void Unlock() { - ASSERT(this->IsLockedByCurrentThread()); + ASSERT(IsLockedByCurrentThread()); ASSERT(lock_count > 0); // Release an instance of the lock. |