Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move maestro to EngineImpl. breaks a unit-test
[simgrid.git] / src / simix / popping_bodies.cpp
index c3b3d94..4b4a084 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include "smx_private.hpp"
+#include "src/kernel/EngineImpl.hpp"
 #include "src/mc/mc_forward.hpp"
 #include "xbt/ex.h"
 #include <functional>
@@ -31,7 +32,7 @@ inline static R simcall(Simcall call, T const&... t)
 {
   smx_actor_t self = SIMIX_process_self();
   simgrid::simix::marshal(&self->simcall_, call, t...);
-  if (not simix_global->is_maestro(self)) {
+  if (not simgrid::kernel::EngineImpl::get_instance()->is_maestro(self)) {
     XBT_DEBUG("Yield process '%s' on simcall %s", self->get_cname(), SIMIX_simcall_name(self->simcall_));
     self->yield();
   } else {