sd_global->watch_point_reached = 0;
- while(xbt_swag_extract(sd_global->return_set)) {}
+ xbt_swag_reset(sd_global->return_set);
/* explore the runnable tasks */
xbt_swag_foreach_safe(task, task_safe, sd_global->runnable_task_set) {
}
} while (xbt_swag_size(var_list));
- xbt_swag_foreach_safe(cnst, cnst_next, cnst_list) {
- xbt_swag_remove(cnst, cnst_list);
- }
+ xbt_swag_reset(cnst_list);
sys->modified = 0;
if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) {
XBT_DEBUG("Fair bottleneck done");
*/
static void lmm_remove_all_modified_set(lmm_system_t sys)
{
- xbt_swag_t modified_constraint_set = &sys->modified_constraint_set;
- lmm_constraint_t cnst;
- lmm_constraint_t cnst_next;
-
- xbt_swag_foreach_safe(cnst, cnst_next, modified_constraint_set) {
- xbt_swag_remove(cnst, modified_constraint_set);
- }
+ xbt_swag_reset(&sys->modified_constraint_set);
}