summaryrefslogtreecommitdiff
path: root/src/dev/net/ethertap.hh
diff options
context:
space:
mode:
authorSean Wilson <spwilson2@wisc.edu>2017-06-28 11:18:55 -0500
committerSean Wilson <spwilson2@wisc.edu>2017-07-12 20:07:05 +0000
commitea57eee60cca92277f9f8d1f2abf501ca158be2e (patch)
tree385d547c13e01c4df67d4de0fe836f57ae6abb17 /src/dev/net/ethertap.hh
parent60adacb5716d91b9838fbb5e2b0d3e766c1cfdb1 (diff)
downloadgem5-ea57eee60cca92277f9f8d1f2abf501ca158be2e.tar.xz
net: Refactor some Event subclasses to lambdas
Change-Id: I0e23f1529b26c36d749bf5211ee8623744d0b10f Signed-off-by: Sean Wilson <spwilson2@wisc.edu> Reviewed-on: https://gem5-review.googlesource.com/3927 Maintainer: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/net/ethertap.hh')
-rw-r--r--src/dev/net/ethertap.hh16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/dev/net/ethertap.hh b/src/dev/net/ethertap.hh
index 96cc4710c..9b4e175e1 100644
--- a/src/dev/net/ethertap.hh
+++ b/src/dev/net/ethertap.hh
@@ -109,21 +109,7 @@ class EtherTapBase : public EtherObject
protected:
std::queue<EthPacketPtr> packetBuffer;
void retransmit();
-
- class TxEvent : public Event
- {
- protected:
- EtherTapBase *tap;
-
- public:
- TxEvent(EtherTapBase *_tap) : tap(_tap) {}
- void process() { tap->retransmit(); }
- virtual const char *description() const
- { return "EtherTapBase retransmit"; }
- };
-
- friend class TxEvent;
- TxEvent txEvent;
+ EventFunctionWrapper txEvent;
};
class EtherTapInt : public EtherInt