summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-04-07 07:25:55 +0200
committerLioncash <mathew1800@gmail.com>2021-04-07 07:25:57 +0200
commitc0187690167704fd72dadad9dff5a8fb7e4f96bb (patch)
tree2a6fed6b4a1c9d436a64e1441b42a09887d9c8ca /src/core
parentk_scoped_lock: Mark class as [[nodiscard]] (diff)
downloadyuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar.gz
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar.bz2
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar.lz
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar.xz
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.tar.zst
yuzu-c0187690167704fd72dadad9dff5a8fb7e4f96bb.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_scoped_lock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_scoped_lock.h b/src/core/hle/kernel/k_scoped_lock.h
index 543555680..7a1035b8c 100644
--- a/src/core/hle/kernel/k_scoped_lock.h
+++ b/src/core/hle/kernel/k_scoped_lock.h
@@ -25,14 +25,17 @@ public:
explicit KScopedLock(T* l) : lock_ptr(l) {
this->lock_ptr->Lock();
}
- explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) { /* ... */
- }
+ explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {}
+
~KScopedLock() {
this->lock_ptr->Unlock();
}
KScopedLock(const KScopedLock&) = delete;
+ KScopedLock& operator=(const KScopedLock&) = delete;
+
KScopedLock(KScopedLock&&) = delete;
+ KScopedLock& operator=(KScopedLock&&) = delete;
private:
T* lock_ptr;