From 11eee67b8510767d76fb4793e3b62ac1793dd723 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 19 Aug 2022 20:53:40 +0200 Subject: Kernel: Make self-contained locking smart pointers their own classes Until now, our kernel has reimplemented a number of AK classes to provide automatic internal locking: - RefPtr - NonnullRefPtr - WeakPtr - Weakable This patch renames the Kernel classes so that they can coexist with the original AK classes: - RefPtr => LockRefPtr - NonnullRefPtr => NonnullLockRefPtr - WeakPtr => LockWeakPtr - Weakable => LockWeakable The goal here is to eventually get rid of the Lock* classes in favor of using external locking. --- Kernel/Devices/MemoryDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Devices/MemoryDevice.cpp') diff --git a/Kernel/Devices/MemoryDevice.cpp b/Kernel/Devices/MemoryDevice.cpp index 02e879dc87..6f9de0206e 100644 --- a/Kernel/Devices/MemoryDevice.cpp +++ b/Kernel/Devices/MemoryDevice.cpp @@ -14,7 +14,7 @@ namespace Kernel { -UNMAP_AFTER_INIT NonnullRefPtr MemoryDevice::must_create() +UNMAP_AFTER_INIT NonnullLockRefPtr MemoryDevice::must_create() { auto memory_device_or_error = DeviceManagement::try_create_device(); // FIXME: Find a way to propagate errors -- cgit v1.2.3