X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ccfebab0925dd4bd5ad1671ad290ebc3141d782..27d79a5027bee4f46e57c813d072422065cb1592:/src/unix/wakeuppipe.cpp?ds=inline diff --git a/src/unix/wakeuppipe.cpp b/src/unix/wakeuppipe.cpp index b8ff1f12a6..18dbb7c466 100644 --- a/src/unix/wakeuppipe.cpp +++ b/src/unix/wakeuppipe.cpp @@ -69,10 +69,8 @@ wxWakeUpPipe::wxWakeUpPipe() // wakeup handling // ---------------------------------------------------------------------------- -void wxWakeUpPipe::WakeUp() +void wxWakeUpPipe::WakeUpNoLock() { - wxCriticalSectionLocker lock(m_pipeLock); - // No need to do anything if the pipe already contains something. if ( !m_pipeIsEmpty ) return; @@ -95,8 +93,6 @@ void wxWakeUpPipe::OnReadWaiting() // got wakeup from child thread, remove the data that provoked it from the // pipe - wxCriticalSectionLocker lock(m_pipeLock); - char buf[4]; for ( ;; ) { @@ -130,8 +126,4 @@ void wxWakeUpPipe::OnReadWaiting() // The pipe is empty now, so future calls to WakeUp() would need to write // to it again. m_pipeIsEmpty = true; - - // writing to the wake up pipe will make wxConsoleEventLoop return from - // wxFDIODispatcher::Dispatch() it might be currently blocking in, nothing - // else needs to be done }