add eMainloop::reset to reset the app_quit_now flag in mainloop (to restart mainloops)
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 30 Mar 2006 23:31:35 +0000 (23:31 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 30 Mar 2006 23:31:35 +0000 (23:31 +0000)
lib/base/ebase.cpp
lib/base/ebase.h

index addd1b8..635ce47 100644 (file)
@@ -350,6 +350,11 @@ int eMainloop::runLoop()
        return retval;
 }
 
+void eMainloop::reset()
+{
+       app_quit_now=false;
+}
+
 PyObject *eMainloop::poll(PyObject *timeout, PyObject *dict)
 {
        PyObject *res = 0;
index b819fc3..b464b44 100644 (file)
@@ -232,6 +232,7 @@ public:
                /* our new shared polling interface. */
        PyObject *poll(PyObject *dict, PyObject *timeout);
        void interruptPoll();
+       void reset();
 };
 
 /**