Throttle.cc (6493:1fa51760a963) | Throttle.cc (6891:77451885bb00) |
---|---|
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 --- 88 unchanged lines hidden (view full) --- 97 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 } | 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 --- 88 unchanged lines hidden (view full) --- 97 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 m_out_link_vec.insertAtBottom(out_vec); | |
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 --- | 105} 106 107void Throttle::addVirtualNetwork(MessageBuffer* in_ptr, MessageBuffer* out_ptr) 108{ 109 m_units_remaining.insertAtBottom(0); 110 m_in.insertAtBottom(in_ptr); 111 m_out.insertAtBottom(out_ptr); 112 --- 168 unchanged lines hidden --- |