changeset c0ea4df1ddab in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=c0ea4df1ddab
description:
eventq: move EventQueue constructor to cc file
Also make copy constructor and assignment operator private.
diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
src/sim/eventq.cc | 4 ++++
src/sim/eventq.hh | 7 ++++---
diffs (29 lines):
diff -r 0f513e623826 -r c0ea4df1ddab src/sim/eventq.cc
--- a/src/sim/eventq.cc Sun Apr 11 00:21:49 2010 -0400
+++ b/src/sim/eventq.cc Thu Apr 15 16:24:10 2010 -0700
@@ -408,3 +408,7 @@
cprintf("Not Scheduled\n");
}
}
+
+EventQueue::EventQueue(const string &n)
+ : objName(n), head(NULL)
+{}
diff -r 0f513e623826 -r c0ea4df1ddab src/sim/eventq.hh
--- a/src/sim/eventq.hh Sun Apr 11 00:21:49 2010 -0400
+++ b/src/sim/eventq.hh Thu Apr 15 16:24:10 2010 -0700
@@ -370,10 +370,11 @@
void insert(Event *event);
void remove(Event *event);
+ EventQueue(const EventQueue &);
+ const EventQueue &operator=(const EventQueue &);
+
public:
- EventQueue(const std::string &n)
- : objName(n), head(NULL)
- {}
+ EventQueue(const std::string &n);
virtual const std::string name() const { return objName; }
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev