// wxYield
//-----------------------------------------------------------------------------
-static bool gs_inYield = false;
-
bool wxApp::Yield(bool onlyIfNeeded)
{
- if ( gs_inYield )
+ if ( m_isInsideYield )
{
if ( !onlyIfNeeded )
{
}
#endif // wxUSE_THREADS
- gs_inYield = true;
+ m_isInsideYield = true;
wxLog::Suspend();
wxLog::Resume();
- gs_inYield = false;
+ m_isInsideYield = false;
return true;
}