X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50fd860b367f42edfa81ab6e83bcd2379b7e8ec8..2da40b8c48f7615cb7fb4bdab32f4d96e4541d91:/src/include/simix/simix.h diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index c26324f122..e27e4f7610 100644 --- a/src/include/simix/simix.h +++ b/src/include/simix/simix.h @@ -108,6 +108,7 @@ XBT_PUBLIC(smx_host_t) SIMIX_process_get_host(smx_process_t process); XBT_PUBLIC(const char *) SIMIX_process_get_name(smx_process_t process); XBT_PUBLIC(smx_process_t) SIMIX_process_self(void); +XBT_PUBLIC(void) SIMIX_process_yield(void); XBT_PUBLIC(void) SIMIX_process_suspend(smx_process_t process); XBT_PUBLIC(void) SIMIX_process_resume(smx_process_t process); XBT_PUBLIC(int) SIMIX_process_is_suspended(smx_process_t process); @@ -170,10 +171,32 @@ XBT_PUBLIC(smx_action_t) SIMIX_action_parallel_execute(char *name, double rate); XBT_PUBLIC(char *) SIMIX_action_get_name(smx_action_t action); +XBT_PUBLIC(void) SIMIX_action_set_name(smx_action_t action,char *name); XBT_PUBLIC(void) SIMIX_action_signal_all(smx_action_t action); - -void SIMIX_display_process_status(void); - +XBT_PUBLIC(void) SIMIX_display_process_status(void); +/************************** Comunication Handling *****************************/ + +/* Public */ +/*****Rendez-vous points*****/ +XBT_PUBLIC(smx_rdv_t) SIMIX_rdv_create(const char *name); +XBT_PUBLIC(void) SIMIX_rdv_destroy(smx_rdv_t rvp); +XBT_PUBLIC(int) SIMIX_rdv_get_count_waiting_comm(smx_rdv_t rdv, smx_host_t host); +XBT_PUBLIC(smx_comm_t) SIMIX_rdv_get_head(smx_rdv_t rdv); +XBT_PUBLIC(smx_comm_t) SIMIX_rdv_get_request(smx_rdv_t rdv, smx_comm_type_t type); + +/*****Communication Requests*****/ +XBT_PUBLIC(void) SIMIX_communication_cancel(smx_comm_t comm); +XBT_PUBLIC(double) SIMIX_communication_get_remains(smx_comm_t comm); +XBT_PUBLIC(void *) SIMIX_communication_get_data(smx_comm_t comm); + +/*****Networking*****/ +XBT_PUBLIC(void) SIMIX_network_send(smx_rdv_t rdv, double task_size, double rate, + double timeout, void *src_buff, + size_t src_buff_size, smx_comm_t *comm, void *data); +XBT_PUBLIC(void) SIMIX_network_recv(smx_rdv_t rdv, double timeout, void *dst_buff, + size_t *dst_buff_size, smx_comm_t *comm); +XBT_PUBLIC(void) SIMIX_network_wait(smx_action_t comm); +XBT_PUBLIC(int) SIMIX_network_test(smx_action_t comm); SG_END_DECL() #endif /* _SIMIX_SIMIX_H */