XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix,
"Logging specific to SIMIX (process)");
-static unsigned long simix_process_maxpid = 0;
+unsigned long simix_process_maxpid = 0;
/**
* \brief Returns the current agent.
while ((p = xbt_swag_extract(simix_global->process_list)))
SIMIX_process_kill(p, SIMIX_process_self());
+ SIMIX_context_runall(simix_global->process_to_run);
+
SIMIX_process_empty_trash();
}
/* Ok, maestro returned control to us */
DEBUG1("Maestro returned control to me: '%s'", self->name);
- if (self->context->iwannadie)
+ if (self->context->iwannadie){
+ DEBUG0("I wanna die!");
SIMIX_context_stop(self->context);
+ }
if (self->doexception) {
DEBUG0("Wait, maestro left me an exception");