X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ede1c3b3c0e65b32ffa025b63d0850501225fb0a..0c13871d73e933c1847faf8debea7b7745a3ff44:/src/simix/smx_process.c diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 1a050b290f..434f87a531 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -248,6 +248,7 @@ void SIMIX_process_create(smx_process_t *process, (*process)->data = data; (*process)->comms = xbt_fifo_new(); (*process)->simcall.issuer = *process; + /* Process data for auto-restart */ (*process)->auto_restart = auto_restart; (*process)->code = code; @@ -634,7 +635,7 @@ void SIMIX_pre_process_sleep(smx_simcall_t simcall, double duration) { if (MC_is_active()) { MC_process_clock_add(simcall->issuer, duration); - simcall->process_sleep.result = SIMIX_DONE; + simcall_process_sleep__set__result(simcall, SIMIX_DONE); SIMIX_simcall_answer(simcall); return; } @@ -697,7 +698,7 @@ void SIMIX_post_process_sleep(smx_action_t action) workstation.get_state(simcall->issuer->smx_host->host) != SURF_RESOURCE_ON) { simcall->issuer->context->iwannadie = 1; } - simcall->process_sleep.result = state; + simcall_process_sleep__set__result(simcall, state); simcall->issuer->waiting_action = NULL; SIMIX_simcall_answer(simcall);