mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
Kernel: Remove Process inheriting from Weakable
This mechanism wasn't actually used to create any WeakPtr<Process>. Such pointers would be pretty hard to work with anyway, due to the multi-step destruction ritual of Process.
This commit is contained in:
parent
635ae70b8f
commit
e90765e957
1 changed files with 1 additions and 3 deletions
|
@ -30,7 +30,6 @@
|
||||||
#include <AK/InlineLinkedList.h>
|
#include <AK/InlineLinkedList.h>
|
||||||
#include <AK/NonnullOwnPtrVector.h>
|
#include <AK/NonnullOwnPtrVector.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/Weakable.h>
|
|
||||||
#include <Kernel/FileSystem/InodeMetadata.h>
|
#include <Kernel/FileSystem/InodeMetadata.h>
|
||||||
#include <Kernel/Forward.h>
|
#include <Kernel/Forward.h>
|
||||||
#include <Kernel/Lock.h>
|
#include <Kernel/Lock.h>
|
||||||
|
@ -93,8 +92,7 @@ struct UnveiledPath {
|
||||||
unsigned permissions { 0 };
|
unsigned permissions { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
class Process : public InlineLinkedListNode<Process>
|
class Process : public InlineLinkedListNode<Process> {
|
||||||
, public Weakable<Process> {
|
|
||||||
friend class InlineLinkedListNode<Process>;
|
friend class InlineLinkedListNode<Process>;
|
||||||
friend class Thread;
|
friend class Thread;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue