Skip to content
Snippets Groups Projects
Commit 33b6e338 authored by Jens Georg's avatar Jens Georg
Browse files

ApplicationModule: Release TestableMode lock for dependency check

parent 138f9d53
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,13 @@ namespace ChimeraTK {
for(auto& variable : getAccessorListRecursive()) {
if(variable.getDirection().dir != VariableDirection::consuming) continue;
if(variable.getMode() == UpdateMode::push) {
Application::testableModeUnlock("Initial value read for push-type " + variable.getName());
Application::getInstance().circularDependencyDetector.registerDependencyWait(variable);
Application::testableModeLock("Initial value read for push-type " + variable.getName());
variable.getAppAccessorNoType().read();
Application::testableModeUnlock("Initial value read for push-type " + variable.getName());
Application::getInstance().circularDependencyDetector.unregisterDependencyWait(variable);
Application::testableModeLock("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