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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user