From 820d6bacd3a41ea3b95428fcaadad20576c74e05 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 15 May 2004 16:29:13 +0000 Subject: [PATCH] removing code needed for cooperative threads git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/app.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index fffc73ae36..8bb378e538 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -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 ) { -- 2.45.2