X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77eddfb7f55ba85099e109ec65cf084ebf3dd77c..5f7348ce627157e21bec507623ebd31c1e9dc762:/src/mac/carbon/thread.cpp?ds=inline diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 0915d13a23..cb8ecb4c2d 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -1171,7 +1171,7 @@ void wxThreadInternal::Wait() kDurationForever); if ( err) { - wxLogSysError( _( "Cannot wait on thread to exit.")); + wxLogSysError( _( "Cannot wait for thread termination.")); rc = (void*) -1; } @@ -1721,6 +1721,9 @@ void WXDLLIMPEXP_BASE wxMutexGuiLeaveOrEnter() wxASSERT_MSG( wxThread::IsMain(), wxT("only main thread may call wxMutexGuiLeaveOrEnter()!") ); + if( !gs_critsectWaitingForGui ) + return; + wxCriticalSectionLocker enter(*gs_critsectWaitingForGui); if ( gs_nWaitingForGui == 0 )