{
// 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
// 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