+
+/** \ingroup m_task_management
+ * \brief Changes the priority of a computation task. This priority doesn't affect
+ * the transfer rate. A priority of 2 will make a task receive two times more
+ * cpu power than the other ones.
+ *
+ */
+void MSG_task_set_priority(m_task_t task, double priority)
+{
+ xbt_assert((task != NULL)
+ && (task->simdata != NULL), "Invalid parameter");
+
+ task->simdata->priority = 1 / priority;
+ if (task->simdata->compute)
+ SIMIX_req_host_execution_set_priority(task->simdata->compute,
+ task->simdata->priority);