]> git.saurik.com Git - wxWidgets.git/commitdiff
removing code needed for cooperative threads
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 15 May 2004 16:29:13 +0000 (16:29 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 15 May 2004 16:29:13 +0000 (16:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index fffc73ae3624988f8a5aa80f11f6432c1a39c0c3..8bb378e538e95045a96e2215374868ce2e4d64e0 100644 (file)
@@ -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 )
     {