diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-13 10:29:32 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 22:45:02 +0100 |
commit | 5872561077e8b671ee9a80ecd5d116100458a28f (patch) | |
tree | cdb8736a1fdd7d1f8b88c3091b96045356ece5b3 /src/core/hle/kernel/k_spin_lock.h | |
parent | hle: kernel: Add initial KMemoryRegionType module. (diff) | |
download | yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar.gz yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar.bz2 yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar.lz yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar.xz yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.tar.zst yuzu-5872561077e8b671ee9a80ecd5d116100458a28f.zip |
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 |