]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/msg_task.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add MSG_storages_as_dynar function
[simgrid.git] / src / msg / msg_task.c
index 101689c4d4168916cb82d0881859a9223a558ca6..a32e0d81a5ec45a4746f3b6cc4defdb331d927bc 100644 (file)
@@ -342,6 +342,23 @@ void MSG_task_set_compute_duration(msg_task_t task,
 
 }
 
+/** \ingroup m_task_management
+ * \brief set the amount data attached with a task #msg_task_t.
+ *
+ * \warning If the transfer is ongoing (already started and not finished),
+ * it is not modified by this call. 
+ */
+
+void MSG_task_set_data_size(msg_task_t task,
+                                   double data_size)
+{
+  xbt_assert(task, "Invalid parameter");
+  task->simdata->message_size = data_size;
+
+}
+
+
+
 /** \ingroup m_task_management
  * \brief Returns the remaining computation amount of a task #msg_task_t.
  *