X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50078f18c7f2fcbe42db89adb2005e9f7d38c301..77e63efea0d0c200b85f224c2faf9de94d98e83a:/src/simix/smx_network_private.h diff --git a/src/simix/smx_network_private.h b/src/simix/smx_network_private.h index d9e2fcfbdd..51c64cf373 100644 --- a/src/simix/smx_network_private.h +++ b/src/simix/smx_network_private.h @@ -7,7 +7,7 @@ #ifndef _SIMIX_NETWORK_PRIVATE_H #define _SIMIX_NETWORK_PRIVATE_H -#include "simix/datatypes.h" +#include "simgrid/simix.h" #include "smx_smurf_private.h" /** @brief Rendez-vous point datatype */ @@ -15,6 +15,8 @@ typedef struct s_smx_rvpoint { char *name; xbt_fifo_t comm_fifo; void *data; + smx_process_t permanent_receiver; //process which the mailbox is attached to + xbt_fifo_t done_comm_fifo;//messages already received in the permanent receive mode } s_smx_rvpoint_t; void SIMIX_network_init(void); @@ -34,22 +36,22 @@ void SIMIX_comm_start(smx_action_t action); void SIMIX_comm_send(smx_process_t src_proc, smx_rdv_t rdv, double task_size, double rate, void *src_buff, size_t src_buff_size, - int (*)(void *, void *), void *data, + int (*match_fun)(void *, void *,smx_action_t), void *data, double timeout); smx_action_t SIMIX_comm_isend(smx_process_t src_proc, smx_rdv_t rdv, double task_size, double rate, void *src_buff, size_t src_buff_size, - int (*)(void *, void *), + int (*match_fun)(void *, void *, smx_action_t), void (*clean_fun)(void *), // used to free the action in case of problem after a detached send void *data, int detached); void SIMIX_comm_recv(smx_process_t dst_proc, smx_rdv_t rdv, void *dst_buff, size_t *dst_buff_size, - int (*)(void *, void *), void *data, + int (*)(void *, void *,smx_action_t), void *data, double timeout); smx_action_t SIMIX_comm_irecv(smx_process_t dst_proc, smx_rdv_t rdv, void *dst_buff, size_t *dst_buff_size, - int (*)(void *, void *), void *data); + int (*)(void *, void *, smx_action_t), void *data); void SIMIX_comm_destroy(smx_action_t action); void SIMIX_comm_destroy_internal_actions(smx_action_t action); void SIMIX_pre_comm_wait(smx_simcall_t simcall, smx_action_t action, double timeout, int idx);