git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33726
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_THREADS
if ( !wxPendingEventsLocker )
return;
#if wxUSE_THREADS
if ( !wxPendingEventsLocker )
return;
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
return;
}
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
return;
}
// iterate until the list becomes empty
wxList::compatibility_iterator node = wxPendingEvents->GetFirst();
// iterate until the list becomes empty
wxList::compatibility_iterator node = wxPendingEvents->GetFirst();
wxEvtHandler *handler = (wxEvtHandler *)node->GetData();
wxPendingEvents->Erase(node);
wxEvtHandler *handler = (wxEvtHandler *)node->GetData();
wxPendingEvents->Erase(node);
// In ProcessPendingEvents(), new handlers might be add
// and we can safely leave the critical section here.
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
// In ProcessPendingEvents(), new handlers might be add
// and we can safely leave the critical section here.
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
handler->ProcessPendingEvents();
handler->ProcessPendingEvents();
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
node = wxPendingEvents->GetFirst();
}
node = wxPendingEvents->GetFirst();
}
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
}
int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))
}
int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))