replaced wxFDIODispatcher::RunLoop() with Dispatch() which handles only one event at a time (part 1 of the patch 1733626)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-07-14 19:50:38 +00:00
parent af57c51ab7
commit 7523de907d
5 changed files with 28 additions and 45 deletions

View File

@@ -135,7 +135,7 @@ bool wxEpollDispatcher::UnregisterFD(int fd)
return true;
}
void wxEpollDispatcher::RunLoop(int timeout)
void wxEpollDispatcher::Dispatch(int timeout)
{
epoll_event events[16];
@@ -168,11 +168,9 @@ void wxEpollDispatcher::RunLoop(int timeout)
if ( p->events & EPOLLIN )
handler->OnReadWaiting();
if ( p->events & EPOLLOUT )
else if ( p->events & EPOLLOUT )
handler->OnWriteWaiting();
if ( p->events & (EPOLLERR | EPOLLHUP) )
else if ( p->events & (EPOLLERR | EPOLLHUP) )
handler->OnExceptionWaiting();
}
}