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