mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Kernel: Switch LockRefPtr<Inode> to RefPtr<Inode>
The main place where this is a little iffy is in RAMFS where inodes have a LockWeakPtr to their parent inode. I've left that as a LockWeakPtr for now.
This commit is contained in:
parent
067d0689c5
commit
e6fc7b3ff7
50 changed files with 143 additions and 144 deletions
|
@ -21,7 +21,7 @@ class LockWeakable;
|
|||
template<typename T>
|
||||
class LockWeakPtr;
|
||||
|
||||
class WeakLink final : public AtomicRefCounted<WeakLink> {
|
||||
class LockWeakLink final : public AtomicRefCounted<LockWeakLink> {
|
||||
template<typename T>
|
||||
friend class LockWeakable;
|
||||
template<typename T>
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
|
||||
private:
|
||||
template<typename T>
|
||||
explicit WeakLink(T& weakable)
|
||||
explicit LockWeakLink(T& weakable)
|
||||
: m_ptr(&weakable)
|
||||
{
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ protected:
|
|||
}
|
||||
|
||||
private:
|
||||
mutable LockRefPtr<WeakLink> m_link;
|
||||
mutable LockRefPtr<LockWeakLink> m_link;
|
||||
Atomic<bool> m_being_destroyed { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue