diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-08-30 09:57:46 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-08-30 09:57:46 -0700 |
commit | a8a7ce2b886ca2571f9470a48a4f12302f9cc830 (patch) | |
tree | a822a33dd765ab633422a004f5136bf43707b1b6 /src/mem/tport.hh | |
parent | 8bc3c2b19231df072fbc6d5dd29db612fff407dd (diff) | |
download | gem5-a8a7ce2b886ca2571f9470a48a4f12302f9cc830.tar.xz |
Minor include file & formatting cleanup.
--HG--
extra : convert_revision : fa23563b2897687752379d63ddab5cccb92484ba
Diffstat (limited to 'src/mem/tport.hh')
-rw-r--r-- | src/mem/tport.hh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/mem/tport.hh b/src/mem/tport.hh index 5473e945e..4d5c4599d 100644 --- a/src/mem/tport.hh +++ b/src/mem/tport.hh @@ -76,19 +76,21 @@ PioDevice::drain(Event *de) class SimpleTimingPort : public Port { protected: - /** A list of outgoing timing response packets that haven't been serviced - * yet. */ + /** A list of outgoing timing response packets that haven't been + * serviced yet. */ std::list<Packet*> transmitList; /** - * This class is used to implemented sendTiming() with a delay. When a delay - * is requested a new event is created. When the event time expires it - * attempts to send the packet. If it cannot, the packet is pushed onto the - * transmit list to be sent when recvRetry() is called. */ + * This class is used to implemented sendTiming() with a delay. When + * a delay is requested a new event is created. When the event time + * expires it attempts to send the packet. If it cannot, the packet + * is pushed onto the transmit list to be sent when recvRetry() is + * called. */ class SendEvent : public Event { SimpleTimingPort *port; Packet *packet; + public: SendEvent(SimpleTimingPort *p, Packet *pkt, Tick t) : Event(&mainEventQueue), port(p), packet(pkt) { setFlags(AutoDelete); schedule(curTick + t); } @@ -97,8 +99,6 @@ class SimpleTimingPort : public Port virtual const char *description() { return "Future scheduled sendTiming event"; } - - friend class SimpleTimingPort; }; @@ -127,8 +127,6 @@ class SimpleTimingPort : public Port {} unsigned int drain(Event *de); - - friend class SimpleTimingPort::SendEvent; }; #endif // __MEM_TPORT_HH__ |