]> git.saurik.com Git - wxWidgets.git/commitdiff
trying to make wxYield() more threads friendly
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 1 Feb 2000 01:46:05 +0000 (01:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 1 Feb 2000 01:46:05 +0000 (01:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp

index 44e9132bb96e9599b2638df30d76957d7fa78351..50df9a440dd08799f5641d66c4476f273d699b74 100644 (file)
@@ -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;
     }