From: Nathan Binkert Date: Thu, 15 Apr 2010 23:24:10 +0000 (-0700) Subject: eventq: move EventQueue constructor to cc file X-Git-Tag: stable_2012_02_02~1426 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7e6f19adabd0ce7e35cea8b5c3b070e2cd26c38;p=gem5.git eventq: move EventQueue constructor to cc file Also make copy constructor and assignment operator private. --- diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc index 430c6d8ab..9b08a45d8 100644 --- a/src/sim/eventq.cc +++ b/src/sim/eventq.cc @@ -408,3 +408,7 @@ Event::dump() const cprintf("Not Scheduled\n"); } } + +EventQueue::EventQueue(const string &n) + : objName(n), head(NULL) +{} diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index cee48665d..1b00088a3 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -370,10 +370,11 @@ class EventQueue : public Serializable 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; }