+ xbt_assert0((action != NULL) && (cond != NULL), "Invalid parameters");
+
+ __SIMIX_cond_display_actions(cond);
+ xbt_fifo_remove_all(cond->actions, action);
+ __SIMIX_cond_display_actions(cond);
+ __SIMIX_action_display_conditions(action);
+ xbt_fifo_remove_all(action->cond_list, cond);
+ __SIMIX_action_display_conditions(action);
+}
+
+/**
+ * \brief Return how much remais to be done in the action.
+ *
+ * \param action The SIMIX action
+ * \return Remains cost
+ */
+double SIMIX_action_get_remains(smx_action_t action)
+{
+ xbt_assert0((action != NULL), "Invalid parameter");
+ return action->simdata->surf_action->remains;
+}
+
+smx_action_t SIMIX_action_parallel_execute(char *name, int host_nb,
+ smx_host_t *host_list,
+ double *computation_amount,
+ double *communication_amount,
+ double amount, double rate)
+{
+ void **workstation_list = NULL;
+ smx_simdata_action_t simdata;
+ smx_action_t act;
+ int i;
+
+ /* alloc structures */
+ act = xbt_new0(s_smx_action_t, 1);
+ act->simdata = xbt_new0(s_smx_simdata_action_t, 1);
+ simdata = act->simdata;
+ act->cond_list = xbt_fifo_new();
+
+ /* initialize them */
+ act->name = xbt_strdup(name);
+
+ /* set action */
+
+ workstation_list = xbt_new0(void *,host_nb);
+ for (i = 0; i < host_nb; i++)
+ workstation_list[i] = host_list[i]->simdata->host;