mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Kernel: Port process groups to SpinLockProtectedValue
This commit is contained in:
parent
6762378f89
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