return task;
}
+/** prevent the task from being destroyed too quickly (but also prevent it from being sent). Mainly useful in bindings */
+void MSG_task_ref(m_task_t t) {
+ t->simdata->refcount++;
+}
+
/** \ingroup m_task_management
* \brief Return the user data of a #m_task_t.
*
action = task->simdata->compute;
if (action)
SIMIX_action_destroy(action);
- action = task->simdata->comm;
- if (action)
- SIMIX_action_destroy(action);
+
/* parallel tasks only */
if (task->simdata->host_list)
xbt_free(task->simdata->host_list);
return MSG_OK;
}
if (task->simdata->comm) {
- SIMIX_action_cancel(task->simdata->comm);
+ SIMIX_communication_cancel(task->simdata->comm);
return MSG_OK;
}
-
- return MSG_FATAL;
+ THROW_IMPOSSIBLE;
}
/** \ingroup m_task_management
xbt_assert0((task != NULL)
&& (task->simdata != NULL), "Invalid parameter");
- return SIMIX_action_get_remains(task->simdata->comm);
+ return SIMIX_communication_get_remains(task->simdata->comm);
}
/** \ingroup m_task_management