mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +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
Notes:
sideshowbarker
2024-07-17 04:41:05 +09:00
Author: https://github.com/supercomputer7
Commit: e8510b6415
Pull-request: https://github.com/SerenityOS/serenity/pull/18275
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