eventq: allow an implicit cast from an EventManager to an EventQueue *
authorNathan Binkert <nate@binkert.org>
Fri, 2 Apr 2010 22:28:22 +0000 (15:28 -0700)
committerNathan Binkert <nate@binkert.org>
Fri, 2 Apr 2010 22:28:22 +0000 (15:28 -0700)
src/sim/eventq.hh

index 7c814d87246c34096aeeb978f53251c6b90581ed..cee48665da4b82fe887a4e0b27b803e2c4e49930 100644 (file)
@@ -440,6 +440,11 @@ class EventManager
         return eventq;
     }
 
+    operator EventQueue *() const
+    {
+        return eventq;
+    }
+
     void
     schedule(Event &event, Tick when)
     {