X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff7eafd19936822d22334fbf345c0b2ac9d56dc5..cd69f8c66886ae218c6a9b38125b27fe157e6bb2:/src/simix/smx_smurf.c diff --git a/src/simix/smx_smurf.c b/src/simix/smx_smurf.c index b08b0b4dfc..64b588b21b 100644 --- a/src/simix/smx_smurf.c +++ b/src/simix/smx_smurf.c @@ -34,7 +34,7 @@ void SIMIX_simcall_push(smx_process_t self) SIMIX_process_yield(self); } else { XBT_DEBUG("I'm the maestro, execute the simcall directly"); - SIMIX_simcall_pre(&self->simcall, 0); + SIMIX_simcall_enter(&self->simcall, 0); } } @@ -53,7 +53,7 @@ void SIMIX_simcall_answer(smx_simcall_t simcall) } } -void SIMIX_simcall_post(smx_action_t action) +void SIMIX_simcall_exit(smx_action_t action) { switch (action->type) { @@ -81,39 +81,5 @@ void SIMIX_simcall_post(smx_action_t action) case SIMIX_ACTION_IO: SIMIX_post_io(action); break; - - /* ****************************************************************************************** */ - /* TUTORIAL: New API */ - /* ****************************************************************************************** */ - case SIMIX_ACTION_NEW_API: - SIMIX_post_new_api(action); - break; } } - -/* New Simcal interface */ - -/* FIXME: add types for every simcall */ -//const char *simcall_types[NUM_SIMCALLS] = { [SIMCALL_HOST_EXECUTE] = "%s%p%f%f%p" }; -/* FIXME find a way to make this work -simcall_handler_t simcall_table[NUM_SIMCALLS] = { -#undef SIMCALL_ENUM_ELEMENT -#define SIMCALL_ENUM_ELEMENT(x,y) &y // generate strings from the enumeration values -SIMCALL_LIST -#undef SIMCALL_ENUM_ELEMENT -};*/ - -/* New Simcal interface */ - -/* FIXME: add types for every simcall */ -//const char *simcall_types[NUM_SIMCALLS] = { [SIMCALL_HOST_EXECUTE] = "%s%p%f%f%p", [SIMCALL_HOST_EXECUTION_WAIT] = "%p%p" }; - - -/*TOFIX find a way to make this work -simcall_handler_t simcall_table[NUM_SIMCALLS] = { -#undef SIMCALL_ENUM_ELEMENT -#define SIMCALL_ENUM_ELEMENT(x,y) &y // generate strings from the enumeration values -SIMCALL_LIST -#undef SIMCALL_ENUM_ELEMENT -};*/ -