+ __SIMIX_cond_display_actions(cond);
+ DEBUG2("Register condition %p to action %p", cond, action);
+ __SIMIX_action_display_conditions(action);
+ xbt_fifo_push(action->cond_list, cond);
+ __SIMIX_action_display_conditions(action);
+}
+
+/**
+ * \brief Unset an action to a condition.
+ *
+ * Destroys the "links" from the condition to this action.
+ * \param action SIMIX action
+ * \param cond SIMIX cond
+ */
+void SIMIX_unregister_action_to_condition(smx_action_t action,
+ smx_cond_t cond)
+{
+ 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);