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:
parent
0bafad0cf4
commit
5b615ed89b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user