Kernel: Simplify the ScopedSpinLock template

We can just templatize the LockType here. This makes my Qt Creator
syntax highlighting work again. :^)
This commit is contained in:
Andreas Kling 2020-07-30 23:43:37 +02:00
commit f2a152e930
Notes: sideshowbarker 2024-07-19 04:27:18 +09:00
2 changed files with 5 additions and 3 deletions

View file

@ -127,7 +127,7 @@ private:
u32 m_recursions { 0 };
};
template<typename BaseType = u32, typename LockType = SpinLock<BaseType>>
template<typename LockType>
class ScopedSpinLock {
AK_MAKE_NONCOPYABLE(ScopedSpinLock);