From f2a152e9304ebd8c564cb730190c6aaf232252b5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 30 Jul 2020 23:43:37 +0200 Subject: [PATCH] Kernel: Simplify the ScopedSpinLock template We can just templatize the LockType here. This makes my Qt Creator syntax highlighting work again. :^) --- Kernel/Forward.h | 6 ++++-- Kernel/SpinLock.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Kernel/Forward.h b/Kernel/Forward.h index ee69b17368..da610b6272 100644 --- a/Kernel/Forward.h +++ b/Kernel/Forward.h @@ -58,9 +58,11 @@ class Region; class Scheduler; class SharedBuffer; class Socket; -template class SpinLock; +template +class SpinLock; class RecursiveSpinLock; -template class ScopedSpinLock; +template +class ScopedSpinLock; class TCPSocket; class TTY; class Thread; diff --git a/Kernel/SpinLock.h b/Kernel/SpinLock.h index 9df59111b5..9e171746fd 100644 --- a/Kernel/SpinLock.h +++ b/Kernel/SpinLock.h @@ -127,7 +127,7 @@ private: u32 m_recursions { 0 }; }; -template> +template class ScopedSpinLock { AK_MAKE_NONCOPYABLE(ScopedSpinLock);