removing code needed for cooperative threads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1028,9 +1028,6 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
|||||||
|
|
||||||
s_inYield = TRUE;
|
s_inYield = TRUE;
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
|
||||||
YieldToAnyThread() ;
|
|
||||||
#endif
|
|
||||||
// by definition yield should handle all non-processed events
|
// by definition yield should handle all non-processed events
|
||||||
|
|
||||||
EventRef theEvent;
|
EventRef theEvent;
|
||||||
@@ -1077,20 +1074,8 @@ void wxApp::MacDoOneEvent()
|
|||||||
if ( wxTheApp->ProcessIdle() )
|
if ( wxTheApp->ProcessIdle() )
|
||||||
sleepTime = kEventDurationNoWait ;
|
sleepTime = kEventDurationNoWait ;
|
||||||
else
|
else
|
||||||
{
|
|
||||||
#if wxUSE_THREADS
|
|
||||||
if (g_numberOfThreads)
|
|
||||||
{
|
|
||||||
YieldToAnyThread() ;
|
|
||||||
sleepTime = kEventDurationNoWait;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif // wxUSE_THREADS
|
|
||||||
{
|
|
||||||
sleepTime = kEventDurationSecond;
|
sleepTime = kEventDurationSecond;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ( status == eventLoopQuitErr )
|
else if ( status == eventLoopQuitErr )
|
||||||
{
|
{
|
||||||
// according to QA1061 this may also occur when a WakeUp Process
|
// according to QA1061 this may also occur when a WakeUp Process
|
||||||
|
Reference in New Issue
Block a user