diff options
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: | |||
| 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. |