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:
parent
a5ee0656c2
commit
820d6bacd3
@ -1028,9 +1028,6 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
|
||||
s_inYield = TRUE;
|
||||
|
||||
#if wxUSE_THREADS
|
||||
YieldToAnyThread() ;
|
||||
#endif
|
||||
// by definition yield should handle all non-processed events
|
||||
|
||||
EventRef theEvent;
|
||||
@ -1077,19 +1074,7 @@ void wxApp::MacDoOneEvent()
|
||||
if ( wxTheApp->ProcessIdle() )
|
||||
sleepTime = kEventDurationNoWait ;
|
||||
else
|
||||
{
|
||||
#if wxUSE_THREADS
|
||||
if (g_numberOfThreads)
|
||||
{
|
||||
YieldToAnyThread() ;
|
||||
sleepTime = kEventDurationNoWait;
|
||||
}
|
||||
else
|
||||
#endif // wxUSE_THREADS
|
||||
{
|
||||
sleepTime = kEventDurationSecond;
|
||||
}
|
||||
}
|
||||
sleepTime = kEventDurationSecond;
|
||||
}
|
||||
else if ( status == eventLoopQuitErr )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user