aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_spin_lock.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-10 00:02:52 -0700
committerGitHub <noreply@github.com>2021-04-10 00:02:52 -0700
commitb04877dd952d7da11647f16626952d7325e4e900 (patch)
treed097ebea3b24a2c815015c17e6c5fd89c69ce045 /src/core/hle/kernel/k_spin_lock.h
parent31c80b8c6faa7681e7b16a4052403281c7f2b9cd (diff)
parent10d6e9f32bcc102d2fb12ba3e489c9a03d7f220f (diff)
Merge pull request #6099 from bunnei/derive-mem
Kernel Rework: Derive memory regions from board layout.
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