X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da7e15623cc3e43bd5b30848b1b2283af9470b5c..16fdb8c65ac8d5baebc0278c499546c5fb10207b:/include/msg/msg.h diff --git a/include/msg/msg.h b/include/msg/msg.h index 33f4ce0425..1ad3093a90 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -11,8 +11,9 @@ #include "xbt/misc.h" #include "xbt/sysdep.h" -BEGIN_DECL() #include "msg/datatypes.h" +SG_BEGIN_DECL() + /************************** Global ******************************************/ void MSG_config(const char *name, ...); @@ -91,6 +92,8 @@ MSG_error_t MSG_task_destroy(m_task_t task); MSG_error_t MSG_task_get(m_task_t * task, m_channel_t channel); MSG_error_t MSG_task_get_with_time_out(m_task_t * task, m_channel_t channel, double max_duration); +MSG_error_t MSG_task_get_from_host(m_task_t * task, int channel, + m_host_t host); MSG_error_t MSG_task_put(m_task_t task, m_host_t dest, m_channel_t channel); MSG_error_t MSG_task_put_bounded(m_task_t task, @@ -102,6 +105,7 @@ void MSG_task_set_priority(m_task_t task, double priority); int MSG_task_Iprobe(m_channel_t channel); int MSG_task_probe_from(m_channel_t channel); +int MSG_task_probe_from_host(int channel, m_host_t host); MSG_error_t MSG_channel_select_from(m_channel_t channel, double max_duration, int *PID); MSG_error_t MSG_process_sleep(double nb_sec); @@ -111,5 +115,5 @@ double MSG_task_get_compute_duration(m_task_t task); double MSG_task_get_remaining_computation(m_task_t task); double MSG_task_get_data_size(m_task_t task); -END_DECL() +SG_END_DECL() #endif