"Logging specific to SIMIX (process)");
unsigned long simix_process_maxpid = 0;
+/* FIXME: Ugly hack!*/
+extern double NOW;
/**
* \brief Returns the current agent.
SIMIX_process_kill(p, SIMIX_process_self());
SIMIX_context_runall(simix_global->process_to_run);
+
SIMIX_process_empty_trash();
}
void SIMIX_pre_process_sleep(smx_req_t req)
{
if (MC_IS_ENABLED) {
+ NOW += req->process_sleep.duration;
req->process_sleep.result = SIMIX_DONE;
SIMIX_request_answer(req);
}
/* 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");