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:
Vadim Zeitlin 2001-02-19 12:29:39 +00:00
parent 663af052c0
commit 6dc5fd7181
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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;