- if(cpu_update_mechanism == UM_LAZY){
- /* remove from heap */
- xbt_heap_remove(cpu_action_heap,
- ((surf_action_cpu_Cas01_t) action)->index_heap);
- xbt_swag_remove(action,
- ((cpu_Cas01_t) ACTION_GET_CPU(action))->action_set);
- xbt_swag_insert(ACTION_GET_CPU(action), cpu_modified_cpu);
+ if (cpu_update_mechanism == UM_LAZY) {
+ /* remove from heap */
+ xbt_heap_remove(cpu_action_heap,
+ ((surf_action_cpu_Cas01_t) action)->index_heap);
+ xbt_swag_remove(action,
+ ((cpu_Cas01_t) ACTION_GET_CPU(action))->action_set);
+ xbt_swag_insert(ACTION_GET_CPU(action), cpu_modified_cpu);