From 2075c0b7975983f393121bcbac8137d0cad5f2e5 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Tue, 30 Sep 2025 03:53:47 -0400 Subject: [PATCH] Get Lval for sh_ptr and fix build error --- include/serializedAsynchronousContinuation.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/serializedAsynchronousContinuation.h b/include/serializedAsynchronousContinuation.h index 0d302f8..591e1e7 100644 --- a/include/serializedAsynchronousContinuation.h +++ b/include/serializedAsynchronousContinuation.h @@ -192,15 +192,19 @@ public: */ if (gridlockLikely) { + std::shared_ptr + currentContinuationShPtr = + serializedContinuation.shared_from_this(); + bool removed = QutexAcquisitionHistoryTracker::getInstance() - .remove(serializedContinuation.shared_from_this()); + .remove(currentContinuationShPtr); if (removed) { std::cerr << "LockerAndInvoker::operator(): False positive " "gridlock detection - continuation @" - << serializedContinuation.get() + << &serializedContinuation << " was being tracked but successfully acquired all " "locks. This was likely due to timed delay, " "long-running operation, or I/O delay."