]> git.saurik.com Git - wxWidgets.git/commitdiff
yielding from main loop
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Apr 2004 16:33:42 +0000 (16:33 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Apr 2004 16:33:42 +0000 (16:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index 914bf892d8e4fe594db4377e1b0d4bf16593789b..7c82e31a6e54cce77a0627c7a807db75f7515c96 100644 (file)
@@ -1081,6 +1081,7 @@ void wxApp::MacDoOneEvent()
 #if wxUSE_THREADS
             if (g_numberOfThreads)
             {
 #if wxUSE_THREADS
             if (g_numberOfThreads)
             {
+                YieldToAnyThread() ;
                 sleepTime = kEventDurationNoWait;
             }
             else
                 sleepTime = kEventDurationNoWait;
             }
             else