mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Kernel: Make Jail class to be AtomicRefCounted instead of RefCounted
This will help ensuring that taking and dropping a reference, hence changing the ref-count, will be done in a safe manner in terms of concurrency.
This commit is contained in:
parent
afcbdad1e3
commit
e8510b6415
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/AtomicRefCounted.h>
|
||||
#include <AK/DistinctNumeric.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/IntrusiveList.h>
|
||||
|
@ -25,7 +26,7 @@ class ProcessList;
|
|||
|
||||
AK_TYPEDEF_DISTINCT_ORDERED_ID(u64, JailIndex);
|
||||
|
||||
class Jail : public RefCounted<Jail> {
|
||||
class Jail : public AtomicRefCounted<Jail> {
|
||||
|
||||
public:
|
||||
NonnullRefPtr<ProcessList> process_list();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue