-
-/**
- * \brief Set a condition to an action
- *
- * Creates the "link" between an action and a condition. You have to call this function when you create an action and want to wait its ending.
- * \param action SIMIX action
- * \param cond SIMIX cond
- */
-void SIMIX_register_condition_to_action(smx_action_t action,
- smx_cond_t cond)
-{
- xbt_assert0((action != NULL) && (cond != NULL), "Invalid parameters");
-
- DEBUG2("Register condition %p to action %p", cond, action);
- xbt_fifo_push(action->cond_list, cond);
-}
-
-/**
- * \brief Unset a condition to an action
- *
- * Destroys the "link" between an action and a condition.
- * \param action SIMIX action
- * \param cond SIMIX cond
- */
-void SIMIX_unregister_condition_to_action(smx_action_t action,
- smx_cond_t cond)
-{
- xbt_assert0((action != NULL) && (cond != NULL), "Invalid parameters");
-
- while (xbt_fifo_remove(action->cond_list, cond)) {
- }
-}