From c0bfefb6cf9dbe736300a7100dd4786f1a3277dd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 May 2007 14:05:46 +0000 Subject: [PATCH] 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 --- src/common/appbase.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.45.2