]> git.saurik.com Git - wxWidgets.git/commitdiff
otherwise all runloop dependent callbacks cannot work outside of the main thread
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Apr 2004 16:31:50 +0000 (16:31 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 18 Apr 2004 16:31:50 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/thread.cpp

index 5e322a719d2eb0b8f820ce62b2499813e1a194cf..db758b346fabeac7e41ee47a6fbff9d8166f76cc 100644 (file)
@@ -524,7 +524,11 @@ bool wxThread::IsMain()
 
 void wxThread::Yield()
 {
+#if TARGET_API_MAC_OSX
+   CFRunLoopRunInMode( kCFRunLoopDefaultMode , 0 , true ) ;
+#endif
     ::YieldToAnyThread() ;
+
 }
 
 void wxThread::Sleep(unsigned long milliseconds)