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; --- 99 unchanged lines hidden (view full) --- 108Throttle::addVirtualNetwork(MessageBuffer* in_ptr, MessageBuffer* out_ptr) 109{ 110 m_units_remaining.push_back(0); 111 m_in.push_back(in_ptr); 112 m_out.push_back(out_ptr); 113 114 // Set consumer and description 115 m_in[m_vnets]->setConsumer(this); |
116 string desc = "[Queue to Throttle " + to_string(m_sID) + " " + 117 to_string(m_node) + "]"; |
118 m_in[m_vnets]->setDescription(desc); 119 m_vnets++; 120} 121 122void 123Throttle::wakeup() 124{ 125 // Limits the number of message sent to a limited number of bytes/cycle. --- 147 unchanged lines hidden --- |