1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:27:45 +00:00

Kernel: Add lock debugging to ProtectedValue / RefCountedContended

Enable the LOCK_DEBUG functionality for these new APIs, as it looks
like we want to move the whole system to use this in the not so distant
future. :^)
This commit is contained in:
Brian Gianforcaro 2021-08-07 04:28:59 -07:00 committed by Andreas Kling
parent bea74f4b77
commit bffcb3e92a
3 changed files with 28 additions and 22 deletions

View file

@ -16,9 +16,9 @@ class LockedResource {
AK_MAKE_NONCOPYABLE(LockedResource);
public:
LockedResource(T* value, Mutex& mutex)
LockedResource(T* value, Mutex& mutex, LockLocation const& location)
: m_value(value)
, m_mutex_locker(mutex, LockingMode)
, m_mutex_locker(mutex, LockingMode, location)
{
}