#include "xbt/log.h"
#include "xbt/sysdep.h"
-
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_gos, msg,
"Logging specific to MSG (gos)");
return comm->task_received ? *comm->task_received : comm->task_sent;
}
+/**
+ * \brief This function is called by SIMIX to copy the data of a comm.
+ * \param comm the comm
+ * \param buff_size size of the buffer
+ */
+void MSG_comm_copy_data_from_SIMIX(smx_action_t comm, size_t buff_size) {
+
+ // copy the task
+ SIMIX_comm_copy_pointer_callback(comm, buff_size);
+
+ // notify the user callback if any
+ if (msg_global->task_copy_callback) {
+ msg_global->task_copy_callback(SIMIX_req_comm_get_src_data(comm),
+ SIMIX_req_comm_get_src_proc(comm), SIMIX_req_comm_get_dst_proc(comm));
+ }
+}
+
/** \ingroup msg_gos_functions
* \brief Put a task on a channel of an host and waits for the end of the
* transmission.