summaryrefslogtreecommitdiffstats
path: root/src/common/spin_lock.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-05 02:41:16 +0100
committerLioncash <mathew1800@gmail.com>2020-11-05 16:07:16 +0100
commit6f006d051e1fad075048ea5664e1ef0605e48a46 (patch)
tree47fbdd1225fabbd0c1abb05bb8ebd5a02632ce02 /src/common/spin_lock.h
parentMerge pull request #4889 from lioncash/setting-global (diff)
downloadyuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar.gz
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar.bz2
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar.lz
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar.xz
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.tar.zst
yuzu-6f006d051e1fad075048ea5664e1ef0605e48a46.zip
Diffstat (limited to 'src/common/spin_lock.h')
-rw-r--r--src/common/spin_lock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/spin_lock.h b/src/common/spin_lock.h
index 4f946a258..06ac2f5bb 100644
--- a/src/common/spin_lock.h
+++ b/src/common/spin_lock.h
@@ -15,6 +15,14 @@ namespace Common {
*/
class SpinLock {
public:
+ SpinLock() = default;
+
+ SpinLock(const SpinLock&) = delete;
+ SpinLock& operator=(const SpinLock&) = delete;
+
+ SpinLock(SpinLock&&) = delete;
+ SpinLock& operator=(SpinLock&&) = delete;
+
void lock();
void unlock();
[[nodiscard]] bool try_lock();