Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix include.
[simgrid.git] / src / simix / simcalls.py
index 2ed634dc3f6efdb52d4df65399d0cd4b1a02bc39..fb346f8d8fa3b76d3920ea382b91bafb2540a58d 100755 (executable)
@@ -380,7 +380,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 (self != simix_global->maestro_) {
+  if (not simix_global->is_maestro(self)) {
     XBT_DEBUG("Yield process '%s' on simcall %s", self->get_cname(), SIMIX_simcall_name(self->simcall_));
     self->yield();
   } else {