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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user