mirror of
https://github.com/RGBCube/serenity
synced 2025-10-24 04:12:30 +00:00
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. |
||
|---|---|---|
| .. | ||
| LockLocation.h | ||
| LockMode.h | ||
| LockRank.cpp | ||
| LockRank.h | ||
| Mutex.cpp | ||
| Mutex.h | ||
| MutexProtected.h | ||
| Spinlock.h | ||
| SpinlockProtected.h | ||