EventManager: Rename queue accessor and remove cast operator
Review Request #1298 - Created July 5, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9104:0f9b39cb455d --------------------------- 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.
util/regress all passing (disregarding t1000 and eio)
Posted (July 6, 2012, 12:03 a.m.)
I'm fine with getting rid of the cast operator, but how about we just rename the queue accessor to something less ambiguous like eventQueue()? When we go to multiple event queues it probably will be handy to know which queue you're on at times. I only use queue() once in my patch (http://reviews.gem5.org/r/846), and even there I'm not sure why that particular change is relevant, but still it would be nice not to lose the method entirely.
Review request changed
Updated (July 6, 2012, 12:56 a.m.)
Summary: |
|
||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+3 -8) |
Ship It!
Ship It!
