mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Port process groups to SpinLockProtectedValue
This commit is contained in:
parent
6762378f89
commit
d6667e4cb8
Notes:
sideshowbarker
2024-07-18 07:19:16 +09:00
Author: https://github.com/awesomekling
Commit: d6667e4cb8
3 changed files with 35 additions and 26 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue