Qutex: Add currOwner pointer for debugging

We'll use this to detect gridlock-type deadlocks between
two requests
This commit is contained in:
2025-09-29 12:40:43 -04:00
parent f1ce1ab19c
commit 7e514a1fa3
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -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;