-// Yield to other processes
-
-bool wxApp::Yield(bool onlyIfNeeded)
-{
- if ( m_isInsideYield )
- {
- if ( !onlyIfNeeded )
- {
- wxFAIL_MSG( wxT("wxYield called recursively" ) );
- }
-
- return false;
- }
-
- m_isInsideYield = true;
-
- wxEventLoopGuarantor dummyLoopIfNeeded;
- while (wxTheApp && wxTheApp->Pending())
- wxTheApp->Dispatch();
-
- m_isInsideYield = false;
-
- return true;
-}