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

allow proper shutdown of ApplicationModules

parent 04c7ab55
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,9 @@ namespace ChimeraTK { ...@@ -35,6 +35,9 @@ namespace ChimeraTK {
void ApplicationModule::terminate() { void ApplicationModule::terminate() {
if(moduleThread.joinable()) { if(moduleThread.joinable()) {
moduleThread.interrupt(); moduleThread.interrupt();
for(auto var : getAccessorListRecursive()) {
var.getAppAccessorNoType().getHighLevelImplElement()->interrupt();
}
moduleThread.join(); moduleThread.join();
} }
assert(!moduleThread.joinable()); assert(!moduleThread.joinable());
......
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