diff options
| author | bunnei <bunneidev@gmail.com> | 2021-04-10 00:02:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-10 00:02:52 -0700 |
| commit | b04877dd952d7da11647f16626952d7325e4e900 (patch) | |
| tree | d097ebea3b24a2c815015c17e6c5fd89c69ce045 /src/core/hle/kernel/k_spin_lock.h | |
| parent | 31c80b8c6faa7681e7b16a4052403281c7f2b9cd (diff) | |
| parent | 10d6e9f32bcc102d2fb12ba3e489c9a03d7f220f (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.h | 6 |
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 |
