Throttle.cc (7055:4e24742201d7) Throttle.cc (7453:1a5db3dd0f62)
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;

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

152 m_out[vnet]->areNSlotsAvailable(1)) {
153
154 // See if we are done transferring the previous message on
155 // this virtual network
156 if (m_units_remaining[vnet] == 0 && m_in[vnet]->isReady()) {
157 // Find the size of the message we are moving
158 MsgPtr msg_ptr = m_in[vnet]->peekMsgPtr();
159 NetworkMessage* net_msg_ptr =
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;

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

152 m_out[vnet]->areNSlotsAvailable(1)) {
153
154 // See if we are done transferring the previous message on
155 // this virtual network
156 if (m_units_remaining[vnet] == 0 && m_in[vnet]->isReady()) {
157 // Find the size of the message we are moving
158 MsgPtr msg_ptr = m_in[vnet]->peekMsgPtr();
159 NetworkMessage* net_msg_ptr =
160 safe_cast<NetworkMessage*>(msg_ptr.ref());
160 safe_cast<NetworkMessage*>(msg_ptr.get());
161 m_units_remaining[vnet] +=
162 network_message_to_size(net_msg_ptr);
163
164 DEBUG_NEWLINE(NETWORK_COMP,HighPrio);
165 DEBUG_MSG(NETWORK_COMP, HighPrio,
166 csprintf("throttle: %d my bw %d bw spent enqueueing "
167 "net msg %d time: %d.",
168 m_node, getLinkBandwidth(), m_units_remaining[vnet],

--- 108 unchanged lines hidden ---
161 m_units_remaining[vnet] +=
162 network_message_to_size(net_msg_ptr);
163
164 DEBUG_NEWLINE(NETWORK_COMP,HighPrio);
165 DEBUG_MSG(NETWORK_COMP, HighPrio,
166 csprintf("throttle: %d my bw %d bw spent enqueueing "
167 "net msg %d time: %d.",
168 m_node, getLinkBandwidth(), m_units_remaining[vnet],

--- 108 unchanged lines hidden ---