diff options
| author | Liam <byteslice@airmail.cc> | 2023-03-06 20:53:58 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-03-12 22:06:53 -0400 |
| commit | fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d (patch) | |
| tree | cb45b6cd4f5471d09f3b0be6c9221aee372b3f5b /src/core/hle/kernel/k_light_lock.h | |
| parent | 097c25b164ba830b8d4a89926a3e90d297d06d8f (diff) | |
kernel: convert KConditionVariable, KLightConditionVariable, KLightLock
Diffstat (limited to 'src/core/hle/kernel/k_light_lock.h')
| -rw-r--r-- | src/core/hle/kernel/k_light_lock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_light_lock.h b/src/core/hle/kernel/k_light_lock.h index 7edd950c0..626f57596 100644 --- a/src/core/hle/kernel/k_light_lock.h +++ b/src/core/hle/kernel/k_light_lock.h @@ -13,7 +13,7 @@ class KernelCore; class KLightLock { public: - explicit KLightLock(KernelCore& kernel_) : kernel{kernel_} {} + explicit KLightLock(KernelCore& kernel) : m_kernel{kernel} {} void Lock(); @@ -24,14 +24,14 @@ public: void UnlockSlowPath(uintptr_t cur_thread); bool IsLocked() const { - return tag != 0; + return m_tag.load() != 0; } bool IsLockedByCurrentThread() const; private: - std::atomic<uintptr_t> tag{}; - KernelCore& kernel; + std::atomic<uintptr_t> m_tag{}; + KernelCore& m_kernel; }; using KScopedLightLock = KScopedLock<KLightLock>; |
