From: Vadim Zeitlin Date: Mon, 21 May 2007 14:05:46 +0000 (+0000) Subject: enter wxPendingEventLocker critical section in ProcessPendingEvents() (fixes 1720352) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c0bfefb6cf9dbe736300a7100dd4786f1a3277dd enter wxPendingEventLocker critical section in ProcessPendingEvents() (fixes 1720352) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index c56c2422bd..63b5ceb46b 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -347,6 +347,8 @@ void wxAppConsole::ProcessPendingEvents() if ( !HasPendingEvents() ) return; + wxENTER_CRIT_SECT( *wxPendingEventsLocker ); + // iterate until the list becomes empty wxList::compatibility_iterator node = wxPendingEvents->GetFirst(); while (node)