otherwise all runloop dependent callbacks cannot work outside of the main thread

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-04-18 16:31:50 +00:00
parent f925e7b4f3
commit 39fbbfda3c

View 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)