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
LockMode.h
LockRank.cpp
LockRank.h
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
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