Revision 77cb9420 src/sim/cscheduler.cc

View differences:

src/sim/cscheduler.cc
140 140
            barrier->setSchedulingPriority(msg->getSchedulingPriority());
141 141
            barrier->setParentStartTime(msg->getArrivalTime());
142 142
            barrier->setParentExecutionOrderId(sim->getNextExecutionOrderId(msg));
143
            // Set scheduling order to infinity
144
            barrier->setSchedulingOrderId(UINT_MAX);
143
            // Set scheduling order to 0 (in front of all children)
144
            barrier->setSchedulingOrderId(0);
145 145

  
146 146
            sim->msgQueue.insert(barrier);
147 147
        }

Also available in: Unified diff