summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_spin_lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/k_spin_lock.h')
-rw-r--r--src/core/hle/kernel/k_spin_lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_spin_lock.h b/src/core/hle/kernel/k_spin_lock.h
index 4d87d006a..7868b25a5 100644
--- a/src/core/hle/kernel/k_spin_lock.h
+++ b/src/core/hle/kernel/k_spin_lock.h
@@ -4,7 +4,7 @@
#pragma once
-#include <atomic>
+#include <mutex>
#include "core/hle/kernel/k_scoped_lock.h"
@@ -25,7 +25,7 @@ public:
[[nodiscard]] bool TryLock();
private:
- std::atomic_flag lck = ATOMIC_FLAG_INIT;
+ std::mutex lck;
};
// TODO(bunnei): Alias for now, in case we want to implement these accurately in the future.