From 8ecfc549ce93bc353d6a64f43a0c25dcd65f860e Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 4 Jun 2008 20:43:40 +0000 Subject: fix spinner handling --- lib/base/ebase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/base/ebase.cpp') diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index 61219811..62746f4b 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -6,6 +6,7 @@ #include #include +#include eSocketNotifier::eSocketNotifier(eMainloop *context, int fd, int requested, bool startnow): context(*context), fd(fd), state(0), requested(requested) { @@ -201,9 +202,14 @@ int eMainloop::processOneEvent(unsigned int twisted_timeout, PyObject **res, ePy if (this == eApp) { + gOpcode op; + op.dc = 0; + op.opcode = gOpcode::flush; + gRC::getInstance()->submit(op); Py_BEGIN_ALLOW_THREADS ret = ::poll(pfd, fdcount, poll_timeout); Py_END_ALLOW_THREADS + } else ret = ::poll(pfd, fdcount, poll_timeout); -- cgit v1.2.3