LockerAndInvoker: better var naming
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user