X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8cb8e7da03088da26d6f05b7ff84c412fef25a53..d6fc96fb24bb0006584d44bee70df5f67b37f5fb:/src/simix/smx_user.c diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index db657c15a5..3331b4610b 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -14,7 +14,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix); static const char* simcall_names[] = { #undef SIMCALL_ENUM_ELEMENT -#define SIMCALL_ENUM_ELEMENT(x) #x /* generate strings from the enumeration values */ +#define SIMCALL_ENUM_ELEMENT(x,y) #x /* generate strings from the enumeration values */ SIMCALL_LIST #undef SIMCALL_ENUM_ELEMENT }; @@ -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; }