Skip to content
Snippets Groups Projects
Commit 8a5a47c1 authored by Jens Georg's avatar Jens Georg Committed by Martin Christoph Hierholzer
Browse files

Re-enable circular dependency checker

parent 9d12278b
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment