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 addd1b88de2c080cc39f03ea58e3a8378816a550..635ce4769531b77dda9e172f6fc908a45d7de270 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 b819fc355b70baf6d7507e410dfe93ea39ce931e..b464b44cdf3f3eff90f885771f10be7dcf7f56db 100644 (file)
@@ -232,6 +232,7 @@ public:
                /* our new shared polling interface. */
        PyObject *poll(PyObject *dict, PyObject *timeout);
        void interruptPoll();
+       void reset();
 };
 
 /**