tport.cc (5387:3323952c3bb4) | tport.cc (5459:b84a60dbf862) |
---|---|
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 | 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 and this is not the head, so event should 107 // already be scheduled 108 assert(waitingOnRetry || 109 (sendEvent->scheduled() && sendEvent->when() <= when)); 110 | |
111 // list is non-empty & this belongs at the end 112 if (when >= transmitList.back().tick) { 113 transmitList.push_back(DeferredPacket(when, pkt)); 114 return; 115 } 116 117 // this belongs in the middle somewhere 118 DeferredPacketIterator i = transmitList.begin(); --- 75 unchanged lines hidden --- | 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 --- |