From: Andreas Monzner Date: Thu, 30 Mar 2006 23:31:35 +0000 (+0000) Subject: add eMainloop::reset to reset the app_quit_now flag in mainloop (to restart mainloops) X-Git-Tag: 2.6.0~3755 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/0c9e75c44d610465017a08874a5e2f585bc554aa add eMainloop::reset to reset the app_quit_now flag in mainloop (to restart mainloops) --- diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index addd1b88..635ce476 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -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; diff --git a/lib/base/ebase.h b/lib/base/ebase.h index b819fc35..b464b44c 100644 --- a/lib/base/ebase.h +++ b/lib/base/ebase.h @@ -232,6 +232,7 @@ public: /* our new shared polling interface. */ PyObject *poll(PyObject *dict, PyObject *timeout); void interruptPoll(); + void reset(); }; /**