Kernel: Port process groups to SpinLockProtectedValue

This commit is contained in:
Andreas Kling 2021-08-07 13:12:35 +02:00
commit d6667e4cb8
Notes: sideshowbarker 2024-07-18 07:19:16 +09:00
3 changed files with 35 additions and 26 deletions

View file

@ -9,7 +9,7 @@
#include <AK/IntrusiveList.h>
#include <AK/RefCounted.h>
#include <AK/Weakable.h>
#include <Kernel/Locking/SpinLock.h>
#include <Kernel/Locking/SpinLockProtectedValue.h>
#include <Kernel/UnixTypes.h>
namespace Kernel {
@ -43,7 +43,6 @@ public:
using List = IntrusiveList<ProcessGroup, RawPtr<ProcessGroup>, &ProcessGroup::m_list_node>;
};
extern ProcessGroup::List* g_process_groups;
extern RecursiveSpinLock g_process_groups_lock;
SpinLockProtectedValue<ProcessGroup::List>& process_groups();
}