Skip to content

Commit

Permalink
Solving hang-up after end of simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoesmp committed Mar 4, 2024
1 parent cefd1fc commit 30c5e78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/helios_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const char * HELIOS_VERSION = "1.3.0";

const char * HELIOS_GIT_HASH = "31904380";
const char * HELIOS_GIT_HASH = "cefd1fce";

const char * getHeliosVersion(){
return HELIOS_VERSION;
Expand Down
3 changes: 2 additions & 1 deletion src/util/threadpool/ThreadPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class ThreadPool{

// Suppress all exceptions.
try{
threads_.join_all();
threads_.interrupt_all(); // Avoid hang-up after end of simulation
//threads_.join_all(); // Legacy mode
}
catch (const std::exception&) {}
}
Expand Down

0 comments on commit 30c5e78

Please sign in to comment.