Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable sthread at the end of the sthread_main
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 29 Jun 2022 06:16:16 +0000 (08:16 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 29 Jun 2022 06:16:16 +0000 (08:16 +0200)
src/sthread/sthread_impl.cpp

index d3e41ae..df18541 100644 (file)
@@ -43,6 +43,7 @@ int sthread_main(int argc, char** argv, char** envp, int (*raw_main)(int, char**
 
   XBT_INFO("Starting the simulation.");
   sg4::Engine::get_instance()->run();
 
   XBT_INFO("Starting the simulation.");
   sg4::Engine::get_instance()->run();
+  sthread_disable();
   XBT_INFO("All threads exited. Terminating the simulation.");
 
   return 0;
   XBT_INFO("All threads exited. Terminating the simulation.");
 
   return 0;