changeset 7dee77da691b in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=7dee77da691b
description:
EventManager: Rename queue accessor and remove cast operator
This patch renames the queue() accessor to the less ambigious
eventQueue, and also removes the cast operator. The queue() member
function cause problems in derived classes that declare members with
the same name, e.g. a MemObject subclass that has a packet queue on
its own. The operator is not causing any harm at this point, but as it
is not used there is little point in keeping it.
diffstat:
src/sim/eventq.hh | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (24 lines):
diff -r 7909b6cf7188 -r 7dee77da691b src/sim/eventq.hh
--- a/src/sim/eventq.hh Mon Jul 09 12:35:44 2012 -0400
+++ b/src/sim/eventq.hh Mon Jul 09 12:35:46 2012 -0400
@@ -431,17 +431,12 @@
EventQueue *eventq;
public:
- EventManager(EventManager &em) : eventq(em.queue()) {}
- EventManager(EventManager *em) : eventq(em ? em->queue() : NULL) {}
+ EventManager(EventManager &em) : eventq(em.eventq) {}
+ EventManager(EventManager *em) : eventq(em ? em->eventq : NULL) {}
EventManager(EventQueue *eq) : eventq(eq) {}
EventQueue *
- queue() const
- {
- return eventq;
- }
-
- operator EventQueue *() const
+ eventQueue() const
{
return eventq;
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev