Qutex: Add currOwner pointer for debugging
We'll use this to detect gridlock-type deadlocks between two requests
This commit is contained in:
+2
-1
@@ -28,7 +28,7 @@ public:
|
||||
Qutex([[maybe_unused]] const std::string &_name)
|
||||
:
|
||||
#ifdef CONFIG_ENABLE_DEBUG_LOCKS
|
||||
name(_name),
|
||||
name(_name), currOwner(nullptr),
|
||||
#endif
|
||||
isOwned(false)
|
||||
{}
|
||||
@@ -92,6 +92,7 @@ public:
|
||||
public:
|
||||
#ifdef CONFIG_ENABLE_DEBUG_LOCKS
|
||||
std::string name;
|
||||
LockerAndInvokerBase* currOwner;
|
||||
#endif
|
||||
SpinLock lock;
|
||||
LockerAndInvokerBase::List queue;
|
||||
|
||||
Reference in New Issue
Block a user