diff options
author | Liam <byteslice@airmail.cc> | 2023-03-07 02:53:58 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-13 03:06:53 +0100 |
commit | fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d (patch) | |
tree | cb45b6cd4f5471d09f3b0be6c9221aee372b3f5b /src/core/hle/kernel/k_light_lock.h | |
parent | kernel: convert KPort, KSession (diff) | |
download | yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar.gz yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar.bz2 yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar.lz yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar.xz yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.tar.zst yuzu-fdf90c6d75c68c4ff1bebbc0ece30d2a507d007d.zip |
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>; |