From ee32a48d95c0abdf1f9de369cd44f8d894b220df Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 18 Feb 2009 15:14:41 +0000 Subject: [PATCH] fix typo: the leave/enter order for the m_handlersWithPendingEventsLocker critical section was flipped git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/evtloopcmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 482324cd4e..f0ae34416a 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -119,7 +119,7 @@ void wxEventLoopBase::ProcessPendingEvents() { // In ProcessPendingEvents(), new handlers might be added // and we can safely leave the critical section here. - wxENTER_CRIT_SECT(m_handlersWithPendingEventsLocker); + wxLEAVE_CRIT_SECT(m_handlersWithPendingEventsLocker); // NOTE: we always call ProcessPendingEvents() on the first event handler // with pending events because handlers auto-remove themselves @@ -127,7 +127,7 @@ void wxEventLoopBase::ProcessPendingEvents() // more pending events. m_handlersWithPendingEvents[0]->ProcessPendingEvents(); - wxLEAVE_CRIT_SECT(m_handlersWithPendingEventsLocker); + wxENTER_CRIT_SECT(m_handlersWithPendingEventsLocker); } // now the wxHandlersWithPendingEvents is surely empty; however some event -- 2.47.2