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:
@@ -82,6 +82,14 @@ void wxExit()
|
|||||||
|
|
||||||
bool wxYield()
|
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__
|
#ifdef __WXDEBUG__
|
||||||
static bool s_inYield = FALSE;
|
static bool s_inYield = FALSE;
|
||||||
|
|
||||||
|
@@ -82,6 +82,14 @@ void wxExit()
|
|||||||
|
|
||||||
bool wxYield()
|
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__
|
#ifdef __WXDEBUG__
|
||||||
static bool s_inYield = FALSE;
|
static bool s_inYield = FALSE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user