Skip to content
Snippets Groups Projects
Commit 3673a029 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

VariableGroup::readAny() includes now variables from sub-groups

parent 6b98820b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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