diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-06-03 03:21:04 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-03 13:27:40 +0200 |
commit | 7e691f96e1e1d881ea698280868be75814e7f33d (patch) | |
tree | bc6970ea1d4536468e13f90043fe260592a0481e /Kernel/ProcessGroup.cpp | |
parent | ce74fce0df94787b143866c03fe96757adf4c6ce (diff) | |
download | serenity-7e691f96e1e1d881ea698280868be75814e7f33d.zip |
Kernel: Switch ProcessGroup to IntrusiveList from InlineLinkedList
Diffstat (limited to 'Kernel/ProcessGroup.cpp')
-rw-r--r-- | Kernel/ProcessGroup.cpp | 6 |
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; |