gs_dispatcher = wxEpollDispatcher::Create();
if ( !gs_dispatcher )
#endif // wxUSE_EPOLL_DISPATCHER
#if wxUSE_SELECT_DISPATCHER
gs_dispatcher = wxEpollDispatcher::Create();
if ( !gs_dispatcher )
#endif // wxUSE_EPOLL_DISPATCHER
#if wxUSE_SELECT_DISPATCHER
// notice that it's not an error to register a handler for the same fd
// twice as it can be done with different flags -- but it is an error to
// notice that it's not an error to register a handler for the same fd
// twice as it can be done with different flags -- but it is an error to
if ( i != m_handlers.end() )
{
wxASSERT_MSG( i->second.handler == handler,
if ( i != m_handlers.end() )
{
wxASSERT_MSG( i->second.handler == handler,
wxFDIOHandlerMap::iterator i = m_handlers.find(fd);
wxCHECK_MSG( i != m_handlers.end(), false,
wxFDIOHandlerMap::iterator i = m_handlers.find(fd);
wxCHECK_MSG( i != m_handlers.end(), false,