ladybird/Kernel/Locking
Andreas Kling ed1253ab90 Kernel: Don't ref/unref the holder thread in Mutex
There was a whole bunch of ref counting churn coming from Mutex, which
had a RefPtr<Thread> m_holder to (mostly) point at the thread holding
the mutex.

Since we never actually dereference the m_holder value, but only use it
for identity checks against thread pointers, we can store it as an
uintptr_t and skip the ref counting entirely.

Threads can't die while holding a mutex anyway, so there's no risk of
them going missing on us.
2023-04-04 10:33:42 +02:00
..
LockLocation.h Kernel: Add missing includes in Locking 2021-12-15 23:34:11 -08:00
LockMode.h Kernel: Add missing includes in Locking 2021-12-15 23:34:11 -08:00
LockRank.cpp Kernel: Add implied auto-specifiers in Locking 2021-12-15 23:34:11 -08:00
LockRank.h Kernel: Fix a typo in LockRank::Process's comment 2021-09-08 19:17:07 +03:00
Mutex.cpp Kernel: Don't ref/unref the holder thread in Mutex 2023-04-04 10:33:42 +02:00
Mutex.h Kernel: Don't ref/unref the holder thread in Mutex 2023-04-04 10:33:42 +02:00
MutexProtected.h Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
Spinlock.h Kernel: Turn lock ranks into template parameters 2023-01-02 18:15:27 -05:00
SpinlockProtected.h Kernel: Turn lock ranks into template parameters 2023-01-02 18:15:27 -05:00