aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_spin_lock.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-13 01:29:32 -0800
committerbunnei <bunneidev@gmail.com>2021-03-21 14:45:02 -0700
commit5872561077e8b671ee9a80ecd5d116100458a28f (patch)
treecdb8736a1fdd7d1f8b88c3091b96045356ece5b3 /src/core/hle/kernel/k_spin_lock.h
parent541b4353e4a85a1f10c53d643ea48b8e31363a62 (diff)
hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.
Diffstat (limited to 'src/core/hle/kernel/k_spin_lock.h')
-rw-r--r--src/core/hle/kernel/k_spin_lock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_spin_lock.h b/src/core/hle/kernel/k_spin_lock.h
index 12c4b2e88..4d87d006a 100644
--- a/src/core/hle/kernel/k_spin_lock.h
+++ b/src/core/hle/kernel/k_spin_lock.h
@@ -28,6 +28,12 @@ private:
std::atomic_flag lck = ATOMIC_FLAG_INIT;
};
+// TODO(bunnei): Alias for now, in case we want to implement these accurately in the future.
+using KAlignedSpinLock = KSpinLock;
+using KNotAlignedSpinLock = KSpinLock;
+
using KScopedSpinLock = KScopedLock<KSpinLock>;
+using KScopedAlignedSpinLock = KScopedLock<KAlignedSpinLock>;
+using KScopedNotAlignedSpinLock = KScopedLock<KNotAlignedSpinLock>;
} // namespace Kernel