Kernel: Support Mutex Protected lists in ListedRefCounted

This will allow us to support Mutex Protected lists like the custodies
list as well.
This commit is contained in:
Idan Horowitz 2021-12-29 00:22:14 +02:00 committed by Andreas Kling
commit be91b4fe3e
Notes: sideshowbarker 2024-07-17 22:01:22 +09:00
4 changed files with 19 additions and 8 deletions

View file

@ -146,7 +146,7 @@ struct ThreadRegisters {
};
class Thread
: public ListedRefCounted<Thread>
: public ListedRefCounted<Thread, LockType::Spinlock>
, public Weakable<Thread> {
AK_MAKE_NONCOPYABLE(Thread);
AK_MAKE_NONMOVABLE(Thread);