Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix an initialization race around the AppSide
[simgrid.git] / src / kernel / EngineImpl.cpp
index 5a6dd12..a5b2d57 100644 (file)
@@ -175,7 +175,7 @@ void EngineImpl::initialize(int* argc, char** argv)
   // The communication initialization is done ASAP, as we need to get some init parameters from the MC for different
   // layers. But instance_ needs to be created, as we send the address of some of its fields to the MC that wants to
   // read them directly.
-  simgrid::mc::AppSide::initialize();
+  simgrid::mc::AppSide::get(); // To ensure that it's initialized
 #endif
 
   if (static bool inited = false; not inited) {