diff -r 62e0d5d5cb0e -r b8abb27c5a88 src/mem/bridge.hh --- a/src/mem/bridge.hh Tue Jul 17 10:53:49 2012 +0100 +++ b/src/mem/bridge.hh Tue Jul 17 19:05:10 2012 +0100 @@ -213,22 +213,8 @@ */ void trySend(); - /** - * Private class for scheduling sending of responses from the - * response queue. - */ - class SendEvent : public Event - { - BridgeSlavePort& port; - - public: - SendEvent(BridgeSlavePort& p) : port(p) {} - virtual void process() { port.trySend(); } - virtual const char *description() const { return "bridge send"; } - }; - /** Send event for the response queue. */ - SendEvent sendEvent; + EventWrapper sendEvent; public: @@ -322,22 +308,8 @@ */ void trySend(); - /** - * Private class for scheduling sending of requests from the - * request queue. - */ - class SendEvent : public Event - { - BridgeMasterPort& port; - - public: - SendEvent(BridgeMasterPort& p) : port(p) {} - virtual void process() { port.trySend(); } - virtual const char *description() const { return "bridge send"; } - }; - /** Send event for the request queue. */ - SendEvent sendEvent; + EventWrapper sendEvent; public: