summaryrefslogtreecommitdiff
path: root/Kernel/ProcessGroup.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-06-03 03:21:04 -0700
committerAndreas Kling <kling@serenityos.org>2021-06-03 13:27:40 +0200
commit7e691f96e1e1d881ea698280868be75814e7f33d (patch)
treebc6970ea1d4536468e13f90043fe260592a0481e /Kernel/ProcessGroup.cpp
parentce74fce0df94787b143866c03fe96757adf4c6ce (diff)
downloadserenity-7e691f96e1e1d881ea698280868be75814e7f33d.zip
Kernel: Switch ProcessGroup to IntrusiveList from InlineLinkedList
Diffstat (limited to 'Kernel/ProcessGroup.cpp')
-rw-r--r--Kernel/ProcessGroup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/ProcessGroup.cpp b/Kernel/ProcessGroup.cpp
index 3a92151e51..85a08aa396 100644
--- a/Kernel/ProcessGroup.cpp
+++ b/Kernel/ProcessGroup.cpp
@@ -9,12 +9,12 @@
namespace Kernel {
RecursiveSpinLock g_process_groups_lock;
-InlineLinkedList<ProcessGroup>* g_process_groups;
+ProcessGroup::List* g_process_groups;
ProcessGroup::~ProcessGroup()
{
ScopedSpinLock lock(g_process_groups_lock);
- g_process_groups->remove(this);
+ g_process_groups->remove(*this);
}
RefPtr<ProcessGroup> ProcessGroup::create(ProcessGroupID pgid)
@@ -22,7 +22,7 @@ RefPtr<ProcessGroup> ProcessGroup::create(ProcessGroupID pgid)
auto process_group = adopt_ref_if_nonnull(new ProcessGroup(pgid));
if (process_group) {
ScopedSpinLock lock(g_process_groups_lock);
- g_process_groups->prepend(process_group);
+ g_process_groups->prepend(*process_group);
}
return process_group;