From 39fbbfda3c702e44d0c128a39440a321489b9b28 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 18 Apr 2004 16:31:50 +0000 Subject: [PATCH] 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 --- src/mac/carbon/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index 5e322a719d..db758b346f 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -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) -- 2.47.2