From 716d60912e398c7ccfc0638657c40db86245a560 Mon Sep 17 00:00:00 2001 From: Owen Green Date: Fri, 12 Jun 2020 19:23:42 +0100 Subject: [PATCH] Recover cancelled notification resolves #58 --- include/FluidSCWrapper.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 53a2363..f0bf2e2 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -51,6 +51,15 @@ struct WrapperState std::atomic mInNRT{false}; std::atomic mNodeAlive{true}; Result mResult{}; + + ~WrapperState() + { + if(!mJobDone && !mSynchronous) + { + std::cout << "Processing Cancelled" << std::endl; + } + } + }; /// Named, shared clients already have a lookup table in their adaptor class