Removed two more GUI lock-ups. This time when
using on-GUI threads and sending event. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -644,12 +644,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
|
||||
wxPendingEvents = new wxList;
|
||||
wxPendingEvents->Append(this);
|
||||
|
||||
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
|
||||
|
||||
// 3) Inform the system that new pending events are somwehere,
|
||||
// and that these should be processed in idle time.
|
||||
|
||||
wxWakeUpIdle();
|
||||
|
||||
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
|
||||
}
|
||||
|
||||
void wxEvtHandler::ProcessPendingEvents()
|
||||
@@ -667,7 +666,7 @@ void wxEvtHandler::ProcessPendingEvents()
|
||||
delete node;
|
||||
|
||||
// In ProcessEvent, new events might get added and
|
||||
// we can safely leave the crtical section here.
|
||||
// we can safely leave the crtical section here.
|
||||
#if defined(__VISAGECPP__)
|
||||
wxLEAVE_CRIT_SECT( m_eventsLocker);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user