tport.cc (3219:32e49a9eea07) tport.cc (3241:76bb7218674f)
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;

--- 65 unchanged lines hidden (view full) ---

74
75void
76SimpleTimingPort::SendEvent::process()
77{
78 port->outTiming--;
79 assert(port->outTiming >= 0);
80 if (port->transmitList.size()) {
81 port->transmitList.push_back(packet);
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;

--- 65 unchanged lines hidden (view full) ---

74
75void
76SimpleTimingPort::SendEvent::process()
77{
78 port->outTiming--;
79 assert(port->outTiming >= 0);
80 if (port->transmitList.size()) {
81 port->transmitList.push_back(packet);
82 }
83 else if (port->sendTiming(packet)) {
82 } else if (port->sendTiming(packet)) {
84 // send successful
85 if (port->transmitList.size() == 0 && port->drainEvent) {
86 port->drainEvent->process();
87 port->drainEvent = NULL;
88 }
89 } else {
90 // send unsuccessful (due to flow control). Will get retry
91 // callback later; save for then.

--- 13 unchanged lines hidden ---
83 // send successful
84 if (port->transmitList.size() == 0 && port->drainEvent) {
85 port->drainEvent->process();
86 port->drainEvent = NULL;
87 }
88 } else {
89 // send unsuccessful (due to flow control). Will get retry
90 // callback later; save for then.

--- 13 unchanged lines hidden ---