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."