Project

General

Profile

Revision 64aa7fee

ID64aa7fee4035b0e8de69b1295aad28e162b72f23

Added by Simon Tenbusch almost 9 years ago

[nullduration] BARRIER: the additional barrier information is now always set in the scheduler, although this might not be necessary everytime.

View differences:

src/sim/cscheduler.cc
137 137
            // If the event is a null duration event,
138 138
            // we have to set additional data in the barrier
139 139
            // to make sure the barrier gets placed correctly
140
            if (duration == SimTime::simTimeZero) {
141
                barrier->setSchedulingPriority(msg->getSchedulingPriority());
142
                barrier->setParentStartTime(msg->getParentStartTime());
143
                barrier->setParentExecutionOrderId(msg->getParentExecutionOrderId());
144

  
145
                // Set scheduling order to infinity
146
                barrier->setSchedulingOrderId(UINT_MAX);
147
            }
140
            barrier->setSchedulingPriority(msg->getSchedulingPriority());
141
            barrier->setParentStartTime(msg->getParentStartTime());
142
            barrier->setParentExecutionOrderId(msg->getParentExecutionOrderId());
143
            // Set scheduling order to infinity
144
            barrier->setSchedulingOrderId(UINT_MAX);
148 145

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

Also available in: Unified diff