Throttle.cc (6288:083a6806dd96) | Throttle.cc (6372:f1a41ea3bbab) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 89 unchanged lines hidden (view full) --- 98 m_message_counters.setSize(MessageSizeType_NUM); 99 for (int i=0; i<MessageSizeType_NUM; i++) { 100 m_message_counters[i].setSize(in_vec.size()); 101 for (int j=0; j<m_message_counters[i].size(); j++) { 102 m_message_counters[i][j] = 0; 103 } 104 } 105 | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 89 unchanged lines hidden (view full) --- 98 m_message_counters.setSize(MessageSizeType_NUM); 99 for (int i=0; i<MessageSizeType_NUM; i++) { 100 m_message_counters[i].setSize(in_vec.size()); 101 for (int j=0; j<m_message_counters[i].size(); j++) { 102 m_message_counters[i][j] = 0; 103 } 104 } 105 |
106 // if (RubyConfig::getPrintTopology()) { 107 m_out_link_vec.insertAtBottom(out_vec); 108 // } | 106 m_out_link_vec.insertAtBottom(out_vec); |
109} 110 111void Throttle::addVirtualNetwork(MessageBuffer* in_ptr, MessageBuffer* out_ptr) 112{ 113 m_units_remaining.insertAtBottom(0); 114 m_in.insertAtBottom(in_ptr); 115 m_out.insertAtBottom(out_ptr); 116 --- 168 unchanged lines hidden --- | 107} 108 109void Throttle::addVirtualNetwork(MessageBuffer* in_ptr, MessageBuffer* out_ptr) 110{ 111 m_units_remaining.insertAtBottom(0); 112 m_in.insertAtBottom(in_ptr); 113 m_out.insertAtBottom(out_ptr); 114 --- 168 unchanged lines hidden --- |