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:
parent
bea74f4b77
commit
bffcb3e92a
3 changed files with 28 additions and 22 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue