#include <Threads.h>
#include "wx/mac/uma.h"
#include "wx/mac/macnotfy.h"
-#include "Timer.h"
+#include <Timer.h>
#endif
#define INFINITE 0xFFFFFFFF
void wxThread::Yield()
{
+#if TARGET_API_MAC_OSX
+ CFRunLoopRunInMode( kCFRunLoopDefaultMode , 0 , true ) ;
+#endif
::YieldToAnyThread() ;
+
}
void wxThread::Sleep(unsigned long milliseconds)
YieldToAnyThread();
Microseconds(&now);
msnow = (now.hi * 4294967296.0 + now.lo) ;
- } while( msstart - msnow < mssleep );
+ } while( msnow - msstart < mssleep );
}
int wxThread::GetCPUCount()