From: Martin Quinson Date: Wed, 29 Jun 2022 06:16:16 +0000 (+0200) Subject: Disable sthread at the end of the sthread_main X-Git-Tag: v3.32~177 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6c8a94bb359a2894e0509af5212f3765f23ccac1 Disable sthread at the end of the sthread_main --- diff --git a/src/sthread/sthread_impl.cpp b/src/sthread/sthread_impl.cpp index d3e41ae346..df1854109b 100644 --- a/src/sthread/sthread_impl.cpp +++ b/src/sthread/sthread_impl.cpp @@ -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(); + sthread_disable(); XBT_INFO("All threads exited. Terminating the simulation."); return 0;