]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/thread.cpp
Use wxVisualAttributes (partially #if'd out until tested further.)
[wxWidgets.git] / src / mac / carbon / thread.cpp
index 47638b34169912dd2d500cc86023b9bf5213c4b9..db758b346fabeac7e41ee47a6fbff9d8166f76cc 100644 (file)
@@ -38,7 +38,7 @@
 #include <Threads.h>
 #include "wx/mac/uma.h"
 #include "wx/mac/macnotfy.h"
 #include <Threads.h>
 #include "wx/mac/uma.h"
 #include "wx/mac/macnotfy.h"
-#include "Timer.h"
+#include <Timer.h>
 #endif
 
 #define INFINITE 0xFFFFFFFF
 #endif
 
 #define INFINITE 0xFFFFFFFF
@@ -524,7 +524,11 @@ bool wxThread::IsMain()
 
 void wxThread::Yield()
 {
 
 void wxThread::Yield()
 {
+#if TARGET_API_MAC_OSX
+   CFRunLoopRunInMode( kCFRunLoopDefaultMode , 0 , true ) ;
+#endif
     ::YieldToAnyThread() ;
     ::YieldToAnyThread() ;
+
 }
 
 void wxThread::Sleep(unsigned long milliseconds)
 }
 
 void wxThread::Sleep(unsigned long milliseconds)