#if wxUSE_THREADS
if ( !wxPendingEventsLocker )
return;
+#endif
// ensure that we're the only thread to modify the pending events list
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
return;
}
-#endif
// iterate until the list becomes empty
wxList::compatibility_iterator node = wxPendingEvents->GetFirst();
wxEvtHandler *handler = (wxEvtHandler *)node->GetData();
wxPendingEvents->Erase(node);
-#if wxUSE_THREADS
// In ProcessPendingEvents(), new handlers might be add
// and we can safely leave the critical section here.
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
-#endif
handler->ProcessPendingEvents();
-#if wxUSE_THREADS
wxENTER_CRIT_SECT( *wxPendingEventsLocker );
-#endif
node = wxPendingEvents->GetFirst();
}
-#if wxUSE_THREADS
wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
-#endif
}
int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))