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

fix potential "ressource deadlock avoided" system error

parent cd2a177c
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,12 @@ namespace ChimeraTK {
Application::getInstance().circularDependencyDetector.registerDependencyWait(variable);
variable.getAppAccessorNoType().read();
Application::getInstance().circularDependencyDetector.unregisterDependencyWait(variable);
Application::testableModeLock("Initial value read for poll-type " + variable.getName());
if(!Application::testableModeTestLock()) {
// The lock may have already been acquired if the above read() goes to a ConsumingFanOut, which sends out
// the data to a slave decorated by a TestableModeAccessorDecorator. Hence we heer must acquire the lock only
// if we do not have it.
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