Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
very preliminary cleanups in the contextes
[simgrid.git] / src / kernel / context / ContextBoost.cpp
index 17fd4c8..414a476 100644 (file)
@@ -21,7 +21,8 @@
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context);
 
 namespace simgrid {
-namespace simix {
+namespace kernel {
+namespace context {
 
 class BoostSerialContext : public BoostContext {
 public:
@@ -117,6 +118,8 @@ void BoostContextFactory::run_all()
   } else
 #endif
   {
+    if (xbt_dynar_is_empty(simix_global->process_to_run))
+      return;
     smx_process_t first_process =
         xbt_dynar_get_as(simix_global->process_to_run, 0, smx_process_t);
     BoostContext::process_index_ = 1;
@@ -289,5 +292,4 @@ XBT_PRIVATE ContextFactory* boost_factory()
   return new BoostContextFactory();
 }
 
-}
-}
+}}} // namespace