From: Nathan Binkert Date: Fri, 2 Apr 2010 22:28:22 +0000 (-0700) Subject: eventq: allow an implicit cast from an EventManager to an EventQueue * X-Git-Tag: stable_2012_02_02~1429 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d71f9712b3640239f70382baade7439ac783f9a1;p=gem5.git eventq: allow an implicit cast from an EventManager to an EventQueue * --- diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 7c814d872..cee48665d 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -440,6 +440,11 @@ class EventManager return eventq; } + operator EventQueue *() const + { + return eventq; + } + void schedule(Event &event, Tick when) {