git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9384
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxYield()
{
+#if wxUSE_THREADS
+ if ( !wxThread::IsMain() )
+ {
+ // can't call gtk_main_iteration() from other threads like this
+ return TRUE;
+ }
+#endif // wxUSE_THREADS
+
#ifdef __WXDEBUG__
static bool s_inYield = FALSE;
bool wxYield()
{
+#if wxUSE_THREADS
+ if ( !wxThread::IsMain() )
+ {
+ // can't call gtk_main_iteration() from other threads like this
+ return TRUE;
+ }
+#endif // wxUSE_THREADS
+
#ifdef __WXDEBUG__
static bool s_inYield = FALSE;