1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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; --- 89 unchanged lines hidden (view full) --- 98 99 // Nothing is on the list: add it and schedule an event 100 if (transmitList.empty() || when < transmitList.front().tick) { 101 transmitList.push_front(DeferredPacket(when, pkt)); 102 schedSendEvent(when); 103 return; 104 } 105 |
106 // list is non-empty & this belongs at the end 107 if (when >= transmitList.back().tick) { 108 transmitList.push_back(DeferredPacket(when, pkt)); 109 return; 110 } 111 112 // this belongs in the middle somewhere 113 DeferredPacketIterator i = transmitList.begin(); --- 75 unchanged lines hidden --- |