git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65500
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// if the thread we're waiting for is waiting for the GUI mutex, we will
// deadlock so make sure we release it temporarily
if ( wxThread::IsMain() )
// if the thread we're waiting for is waiting for the GUI mutex, we will
// deadlock so make sure we release it temporarily
if ( wxThread::IsMain() )
+ {
+#ifdef __WXOSX__
+ // give the thread we're waiting for chance to do the GUI call
+ // it might be in, we don't do this conditionally as the to be waited on
+ // thread might have to acquire the mutex later but before terminating
+ if ( wxGuiOwnedByMainThread() )
+ wxMutexGuiLeave();
+#else
wxLogTrace(TRACE_THREADS,
wxT("Starting to wait for thread %p to exit."),
wxLogTrace(TRACE_THREADS,
wxT("Starting to wait for thread %p to exit."),
// reacquire GUI mutex
if ( wxThread::IsMain() )
wxMutexGuiEnter();
// reacquire GUI mutex
if ( wxThread::IsMain() )
wxMutexGuiEnter();
}
void wxThreadInternal::Pause()
}
void wxThreadInternal::Pause()