summaryrefslogtreecommitdiff
path: root/Kernel/Library/LockWeakable.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-07 12:25:00 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-09 21:54:59 +0100
commite6fc7b3ff7618cd88a03683eb5b2145c9932d562 (patch)
treea94f6090c00962ac0468a402de4d92977f813481 /Kernel/Library/LockWeakable.h
parent067d0689c5f7ff720fcfec9ff4d2898741948fed (diff)
downloadserenity-e6fc7b3ff7618cd88a03683eb5b2145c9932d562.zip
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.
Diffstat (limited to 'Kernel/Library/LockWeakable.h')
-rw-r--r--Kernel/Library/LockWeakable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Library/LockWeakable.h b/Kernel/Library/LockWeakable.h
index 5c21382e25..6c146e665b 100644
--- a/Kernel/Library/LockWeakable.h
+++ b/Kernel/Library/LockWeakable.h
@@ -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 };
};