From: Vadim Zeitlin Date: Tue, 1 Feb 2000 01:46:05 +0000 (+0000) Subject: trying to make wxYield() more threads friendly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5b615ed89b9661607a6922ef5b2165452585565f trying to make wxYield() more threads friendly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 44e9132bb9..50df9a440d 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -1220,6 +1220,10 @@ bool wxYield() while ( PeekMessage(&msg, (HWND)0, 0, 0, PM_NOREMOVE) && msg.message != WM_QUIT ) { +#if wxUSE_THREADS + wxMutexGuiLeaveOrEnter(); +#endif // wxUSE_THREADS + if ( !wxTheApp->DoMessage() ) break; }