]> git.saurik.com Git - wxWidgets.git/commitdiff
fix typo: the leave/enter order for the m_handlersWithPendingEventsLocker critical...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 18 Feb 2009 15:14:41 +0000 (15:14 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 18 Feb 2009 15:14:41 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/evtloopcmn.cpp

index 482324cd4e0ac64d8788db88a9560c6095ec2da8..f0ae34416a6c85f80087c7945406bee27cda72e6 100644 (file)
@@ -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