LockerAndInvoker: better var naming

This commit is contained in:
2025-09-30 10:41:53 -04:00
parent f15c07bc83
commit a55bcc2a03
+3 -3
View File
@@ -80,12 +80,12 @@ public:
invocationTarget(std::move(invocationTarget)) invocationTarget(std::move(invocationTarget))
{ {
#ifdef CONFIG_ENABLE_DEBUG_LOCKS #ifdef CONFIG_ENABLE_DEBUG_LOCKS
std::optional<std::reference_wrapper<Qutex>> firstFailedQutex = std::optional<std::reference_wrapper<Qutex>> firstDuplicatedQutex =
traceContinuationHistoryForDeadlock(); traceContinuationHistoryForDeadlock();
if (firstFailedQutex.has_value()) if (firstDuplicatedQutex.has_value())
{ {
handleDeadlock(firstFailedQutex.value().get()); handleDeadlock(firstDuplicatedQutex.value().get());
throw std::runtime_error( throw std::runtime_error(
"LockerAndInvoker::LockerAndInvoker(): Deadlock detected"); "LockerAndInvoker::LockerAndInvoker(): Deadlock detected");
} }