summaryrefslogtreecommitdiff
path: root/src/sim/eventq.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-09 04:58:23 -0700
committerNathan Binkert <nate@binkert.org>2008-10-09 04:58:23 -0700
commiteb89a23556a16958d9931b93f57b626f20af0ddd (patch)
tree75e9a1b81a9f8c7eea858485670336efc79bd43f /src/sim/eventq.hh
parenta589eb4053d9a902f9e9047830955963aec94e64 (diff)
downloadgem5-eb89a23556a16958d9931b93f57b626f20af0ddd.tar.xz
eventq: Don't use inline friend function when a static function will do.
Another good reason to avoid this is that swig will try to wrap the friend, but it won't try to wrap a private static function.
Diffstat (limited to 'src/sim/eventq.hh')
-rw-r--r--src/sim/eventq.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index 967e558db..e0194a742 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -87,8 +87,8 @@ class Event : public Serializable, public FastAlloc
Event *nextBin;
Event *nextInBin;
- friend Event *insertBefore(Event *event, Event *curr);
- friend Event *removeItem(Event *event, Event *last);
+ static Event *insertBefore(Event *event, Event *curr);
+ static Event *removeItem(Event *event, Event *last);
/// queue to which this event belongs (though it may or may not be
/// scheduled on this queue yet)