Deleted Added
sdiff udiff text old ( 12334:e0ab29a34764 ) new ( 13062:6f9defe1c11e )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 142 unchanged lines hidden (view full) ---

151 m_msg_counter++;
152 m_msgs_this_cycle++;
153
154 // Calculate the arrival time of the message, that is, the first
155 // cycle the message can be dequeued.
156 assert(delta > 0);
157 Tick arrival_time = 0;
158
159 // random delays are inserted if either RubySystem level randomization flag
160 // is turned on, or the buffer level randomization is set
161 if (!RubySystem::getRandomization() && !m_randomization) {
162 // No randomization
163 arrival_time = current_time + delta;
164 } else {
165 // Randomization - ignore delta
166 if (m_strict_fifo) {
167 if (m_last_arrival_time < current_time) {
168 m_last_arrival_time = current_time;
169 }

--- 297 unchanged lines hidden ---