mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
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:
parent
949aef4aef
commit
f2a152e930
2 changed files with 5 additions and 3 deletions
|
@ -58,9 +58,11 @@ class Region;
|
||||||
class Scheduler;
|
class Scheduler;
|
||||||
class SharedBuffer;
|
class SharedBuffer;
|
||||||
class Socket;
|
class Socket;
|
||||||
template <typename BaseType> class SpinLock;
|
template<typename BaseType>
|
||||||
|
class SpinLock;
|
||||||
class RecursiveSpinLock;
|
class RecursiveSpinLock;
|
||||||
template <typename BaseType, typename LockType> class ScopedSpinLock;
|
template<typename LockType>
|
||||||
|
class ScopedSpinLock;
|
||||||
class TCPSocket;
|
class TCPSocket;
|
||||||
class TTY;
|
class TTY;
|
||||||
class Thread;
|
class Thread;
|
||||||
|
|
|
@ -127,7 +127,7 @@ private:
|
||||||
u32 m_recursions { 0 };
|
u32 m_recursions { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename BaseType = u32, typename LockType = SpinLock<BaseType>>
|
template<typename LockType>
|
||||||
class ScopedSpinLock {
|
class ScopedSpinLock {
|
||||||
AK_MAKE_NONCOPYABLE(ScopedSpinLock);
|
AK_MAKE_NONCOPYABLE(ScopedSpinLock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue