X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da9d640d914fb561db6cac31908505e8198c191b..d6fc96fb24bb0006584d44bee70df5f67b37f5fb:/src/simix/smx_user.c diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index d019078c51..3331b4610b 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -383,9 +383,13 @@ e_smx_state_t simcall_host_execution_wait(smx_action_t execution) simcall->call = SIMCALL_HOST_EXECUTION_WAIT; simcall->host_execution_wait.execution = execution; + simcall->host_execution_wait.simcall = simcall; + + SIMIX_simcall(SIMCALL_HOST_EXECUTION_WAIT, PTR(simcall), PTR(execution)); + if(MC_is_active()) /* Initialize result to a default value for snapshot comparison done during simcall */ simcall->host_execution_wait.result = -1; - SIMIX_simcall_push(simcall->issuer); + return simcall->host_execution_wait.result; }