1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-18 01:02:25 +00:00
serenity/Kernel/Library
Andreas Kling 5b1f697460 AK+Kernel: Make automatically locking RefPtr & co a kernel-only thing
Some time ago, automatic locking was added to the AK smart pointers to
paper over various race conditions in the kernel. Until we've actually
solved the issues in the kernel, we're stuck with the locking.

However, we don't need to punish single-threaded userspace programs with
the high cost of locking. This patch moves the thread-safe variants of
RefPtr, NonnullRefPtr, WeakPtr and RefCounted into Kernel/Library/.
2021-10-07 19:27:30 +02:00
..
ListedRefCounted.h Kernel: Stop leaking TmpFS inodes 2021-09-07 22:16:25 +02:00
ThreadSafeNonnullRefPtr.h AK+Kernel: Make automatically locking RefPtr & co a kernel-only thing 2021-10-07 19:27:30 +02:00
ThreadSafeRefCounted.h AK+Kernel: Make automatically locking RefPtr & co a kernel-only thing 2021-10-07 19:27:30 +02:00
ThreadSafeRefPtr.h AK+Kernel: Make automatically locking RefPtr & co a kernel-only thing 2021-10-07 19:27:30 +02:00
ThreadSafeWeakPtr.h AK+Kernel: Make automatically locking RefPtr & co a kernel-only thing 2021-10-07 19:27:30 +02:00