trying to make wxYield() more threads friendly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-02-01 01:46:05 +00:00
parent 0bafad0cf4
commit 5b615ed89b

View File

@ -1220,6 +1220,10 @@ bool wxYield()
while ( PeekMessage(&msg, (HWND)0, 0, 0, PM_NOREMOVE) && while ( PeekMessage(&msg, (HWND)0, 0, 0, PM_NOREMOVE) &&
msg.message != WM_QUIT ) msg.message != WM_QUIT )
{ {
#if wxUSE_THREADS
wxMutexGuiLeaveOrEnter();
#endif // wxUSE_THREADS
if ( !wxTheApp->DoMessage() ) if ( !wxTheApp->DoMessage() )
break; break;
} }