diff options
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/swig/pyevent.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/swig/pyevent.cc b/src/python/swig/pyevent.cc index 4651d252b..6d80a00cd 100644 --- a/src/python/swig/pyevent.cc +++ b/src/python/swig/pyevent.cc @@ -32,6 +32,7 @@ #include "python/swig/pyevent.hh" #include "sim/async.hh" +#include "sim/eventq.hh" PythonEvent::PythonEvent(PyObject *obj, Priority priority) : Event(priority), object(obj) @@ -59,6 +60,8 @@ PythonEvent::process() // that there's been an exception. async_event = true; async_exception = true; + /* Wake up some event queue to handle event */ + getEventQueue(0)->wakeup(); } // Since the object has been removed from the event queue, its |