git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15526
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxYield
//-----------------------------------------------------------------------------
// wxYield
//-----------------------------------------------------------------------------
+// not static because used by textctrl.cpp
+//
+// MT-FIXME
+bool wxIsInsideYield = FALSE;
+
bool wxApp::Yield(bool onlyIfNeeded)
{
bool wxApp::Yield(bool onlyIfNeeded)
{
- // MT-FIXME
- static bool s_inYield = FALSE;
-
- if ( s_inYield )
}
#endif // wxUSE_THREADS
}
#endif // wxUSE_THREADS
+ wxIsInsideYield = TRUE;
// let the logs be flashed again
wxLog::Resume();
// let the logs be flashed again
wxLog::Resume();
+ wxIsInsideYield = FALSE;
// wxYield
//-----------------------------------------------------------------------------
// wxYield
//-----------------------------------------------------------------------------
+// not static because used by textctrl.cpp
+//
+// MT-FIXME
+bool wxIsInsideYield = FALSE;
+
bool wxApp::Yield(bool onlyIfNeeded)
{
bool wxApp::Yield(bool onlyIfNeeded)
{
- // MT-FIXME
- static bool s_inYield = FALSE;
-
- if ( s_inYield )
}
#endif // wxUSE_THREADS
}
#endif // wxUSE_THREADS
+ wxIsInsideYield = TRUE;
// let the logs be flashed again
wxLog::Resume();
// let the logs be flashed again
wxLog::Resume();
+ wxIsInsideYield = FALSE;