- if ( !m_pipe.Create() )
- {
- wxLogError(_("Failed to create wake up pipe used by event loop."));
- return false;
- }
-
- const int fdRead = GetReadFd();
-
- int flags = fcntl(fdRead, F_GETFL, 0);
- if ( flags == -1 || fcntl(fdRead, F_SETFL, flags | O_NONBLOCK) == -1 )
+ m_wakeupPipe = new wxWakeUpPipeMT;
+ const int pipeFD = m_wakeupPipe->GetReadFd();
+ if ( pipeFD == wxPipe::INVALID_FD )