From 0c9e75c44d610465017a08874a5e2f585bc554aa Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 30 Mar 2006 23:31:35 +0000 Subject: [PATCH] add eMainloop::reset to reset the app_quit_now flag in mainloop (to restart mainloops) --- lib/base/ebase.cpp | 5 +++++ lib/base/ebase.h | 1 + 2 files changed, 6 insertions(+) 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(); }; /** -- 2.30.2