bool wxEventLoopBase::Yield(bool onlyIfNeeded) { if ( onlyIfNeeded && IsYielding() ) return false; return YieldFor(wxEVT_CATEGORY_ALL); }
bool wxEventLoopBase::Yield(bool onlyIfNeeded) { if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { wxFAIL_MSG( wxT("wxYield called recursively" ) ); } return false; } return YieldFor(wxEVT_CATEGORY_ALL); }