yielding from main loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
39fbbfda3c
commit
3b8d819f30
@ -1081,6 +1081,7 @@ void wxApp::MacDoOneEvent()
|
|||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
if (g_numberOfThreads)
|
if (g_numberOfThreads)
|
||||||
{
|
{
|
||||||
|
YieldToAnyThread() ;
|
||||||
sleepTime = kEventDurationNoWait;
|
sleepTime = kEventDurationNoWait;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user