+ if(duration == NO_MAX_DURATION) {
+ /* Move to the *end* of the corresponding action set. This convention
+ is used to speed up update_resource_state */
+ action_set = action->generic_action.state_set;
+ xbt_swag_remove(action, action_set);
+ xbt_swag_insert(action, action_set);
+ }