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

Fix deadlock when reading initial values for poll-type inputs in testable mode

Poll-type reads are blocking until the initial values are available, hence the testable mode must be released in case the initial value is not yet available.
parent e8e8e193
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,9 @@ namespace ChimeraTK {
for(auto& variable : getAccessorListRecursive()) {
if(variable.getDirection().dir != VariableDirection::consuming) continue;
if(variable.getMode() == UpdateMode::poll) {
Application::testableModeUnlock("Initial value read for poll-type " + variable.getName());
variable.getAppAccessorNoType().read();
Application::testableModeLock("Initial value read for poll-type " + variable.getName());
}
}
for(auto& variable : getAccessorListRecursive()) {
......
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