From 3673a029ce56c6e6cc085bad97df0f552dd09374 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Wed, 16 Nov 2016 10:46:37 +0100 Subject: [PATCH] VariableGroup::readAny() includes now variables from sub-groups --- src/VariableGroup.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VariableGroup.cc b/src/VariableGroup.cc index e14e7913..b20be8b5 100644 --- a/src/VariableGroup.cc +++ b/src/VariableGroup.cc @@ -17,10 +17,12 @@ namespace ChimeraTK { void VariableGroup::readAny() { bool gotUpdate = false; + auto accessorList = getAccessorListRecursive(); while(!gotUpdate) { /// @todo TODO FIXME make proper blocking implementation boost::this_thread::yield(); boost::this_thread::interruption_point(); - for(auto accessor : accessorList) { + + for(auto accessor : accessorList) { // @todo FIXME make sure no submodule is accessing the variables itself... (e.g. by forcing all submodules to be a VariablGroup and not e.g. an ApplicationModule) if(accessor->getUpdateMode() == UpdateMode::push) { if(accessor->readNonBlocking()) gotUpdate = true; } -- GitLab