X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b44a3355390abef75580416efa5cd3b02fe2ca7..b2b4f8c0ca2884f99a923d30b4b37b12c76e936b:/src/dfb/evtloop.cpp diff --git a/src/dfb/evtloop.cpp b/src/dfb/evtloop.cpp index 30ed0b7259..2ecc94a9b4 100644 --- a/src/dfb/evtloop.cpp +++ b/src/dfb/evtloop.cpp @@ -86,9 +86,6 @@ bool wxEventLoop::Dispatch() // NB: we don't block indefinitely waiting for an event, but instead // time out after a brief period in order to make sure that // OnNextIteration() will be called frequently enough - // - // FIXME: call NotifyTimers() and wxSocketEventDispatcher::RunLoop() from here - // (and loop) instead? const int TIMEOUT = 100; if ( ms_buffer->WaitForEventWithTimeout(0, TIMEOUT) ) @@ -127,8 +124,6 @@ void wxEventLoop::WakeUp() void wxEventLoop::OnNextIteration() { - // see the comment in Dispatch - #if wxUSE_TIMER wxTimer::NotifyTimers(); #endif @@ -139,6 +134,16 @@ void wxEventLoop::OnNextIteration() #endif } +void wxEventLoop::Yield() +{ + // process all pending events: + while ( Pending() ) + Dispatch(); + + // handle timers, sockets etc. + OnNextIteration(); +} + //----------------------------------------------------------------------------- // DirectFB -> wxWidgets events translation