-#ifdef wxUSE_EPOLL_DISPATCHER
- m_dispatcher = wxEpollDispatcher::Get();
- if ( !m_dispatcher )
-#endif // wxUSE_EPOLL_DISPATCHER
-#if wxUSE_SELECT_DISPATCHER
- m_dispatcher = wxSelectDispatcher::Get();
-#endif // wxUSE_WCHAR_T
-
- wxCHECK_RET( m_dispatcher, _T("failed to create IO dispatcher") );
-
- m_dispatcher->RegisterFD
- (
- m_wakeupPipe.GetReadFd(),
- &m_wakeupPipe,
- wxFDIO_INPUT
- );