From 8a5a47c183545337947cb7c9fcf295001b769127 Mon Sep 17 00:00:00 2001 From: Jens Georg <jens.georg@desy.de> Date: Wed, 28 Sep 2022 10:45:02 +0200 Subject: [PATCH] Re-enable circular dependency checker --- src/ApplicationModule.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApplicationModule.cc b/src/ApplicationModule.cc index 1f56ff83..73aeb100 100644 --- a/src/ApplicationModule.cc +++ b/src/ApplicationModule.cc @@ -137,12 +137,12 @@ namespace ChimeraTK { if(variable.getDirection().dir != VariableDirection::consuming) continue; if(variable.getMode() == UpdateMode::push) { Application::getInstance().getTestableMode().unlock("Initial value read for push-type " + variable.getName()); - //Application::getInstance().circularDependencyDetector.registerDependencyWait(variable); + Application::getInstance().circularDependencyDetector.registerDependencyWait(variable); // Will internally release and lock during the read, hence surround with lock/unlock Application::getInstance().getTestableMode().lock("Initial value read for push-type " + variable.getName()); variable.getAppAccessorNoType().read(); Application::getInstance().getTestableMode().unlock("Initial value read for push-type " + variable.getName()); - //Application::getInstance().circularDependencyDetector.unregisterDependencyWait(variable); + Application::getInstance().circularDependencyDetector.unregisterDependencyWait(variable); Application::getInstance().getTestableMode().lock("Initial value read for push-type " + variable.getName()); } } -- GitLab