temp (?) fix for wxYield() calls from other threads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
663af052c0
commit
6dc5fd7181
@ -82,6 +82,14 @@ void wxExit()
|
||||
|
||||
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;
|
||||
|
||||
|
@ -82,6 +82,14 @@ void wxExit()
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user