X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/60059959d6d517261ca7f4176b0267bc37caf04d..638d55dcb8d944f7c74127725f1acb7b8e1449de:/src/simix/popping_private.h diff --git a/src/simix/popping_private.h b/src/simix/popping_private.h index cc2d741f29..dc8c59df52 100644 --- a/src/simix/popping_private.h +++ b/src/simix/popping_private.h @@ -13,9 +13,10 @@ SG_BEGIN_DECL() XBT_PUBLIC(const char*) simcall_names[]; /* Name of each simcall */ #include "popping_enum.h" /* Definition of e_smx_simcall_t, with one value per simcall */ +#include "mc/mc_forward.h" /* Definition of mc_snapshot_t, used by one simcall */ -typedef int (*simix_match_func_t)(void *, void *, smx_action_t); -typedef void (*simix_copy_data_func_t)(smx_action_t, void*, size_t); +typedef int (*simix_match_func_t)(void *, void *, smx_synchro_t); +typedef void (*simix_copy_data_func_t)(smx_synchro_t, void*, size_t); typedef void (*simix_clean_func_t)(void *); typedef void (*FPtr)(void); // Hide the ugliness @@ -46,20 +47,13 @@ union u_smx_scalar { typedef struct s_smx_simcall { e_smx_simcall_t call; smx_process_t issuer; -#ifdef HAVE_MC int mc_value; -#endif union u_smx_scalar args[11]; union u_smx_scalar result; } s_smx_simcall_t, *smx_simcall_t; -#if HAVE_MC #define SIMCALL_SET_MC_VALUE(simcall, value) ((simcall)->mc_value = (value)) #define SIMCALL_GET_MC_VALUE(simcall) ((simcall)->mc_value) -#else -#define SIMCALL_SET_MC_VALUE(simcall, value) ((void)0) -#define SIMCALL_GET_MC_VALUE(simcall) 0 -#endif #include "popping_accessors.h" @@ -67,10 +61,8 @@ typedef struct s_smx_simcall { void SIMIX_simcall_answer(smx_simcall_t); void SIMIX_simcall_handle(smx_simcall_t, int); -void SIMIX_simcall_exit(smx_action_t); +void SIMIX_simcall_exit(smx_synchro_t); const char *SIMIX_simcall_name(e_smx_simcall_t kind); -//FIXME put it in a better place -xbt_dict_t SIMIX_pre_asr_get_properties(smx_simcall_t simcall, const char *name); SG_END_DECL()