summaryrefslogtreecommitdiffstats
path: root/src/common
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
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')
-rw-r--r--src/common/fiber.h4
-rw-r--r--src/common/spin_lock.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/common/fiber.h b/src/common/fiber.h
index 699286ee2..1a027be96 100644
--- a/src/common/fiber.h
+++ b/src/common/fiber.h
@@ -41,8 +41,8 @@ public:
Fiber(const Fiber&) = delete;
Fiber& operator=(const Fiber&) = delete;
- Fiber(Fiber&&) = default;
- Fiber& operator=(Fiber&&) = default;
+ Fiber(Fiber&&) = delete;
+ Fiber& operator=(Fiber&&) = delete;
/// Yields control from Fiber 'from' to Fiber 'to'
/// Fiber 'from' must be the currently running fiber.
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();