More fool-proof lock in thread events code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -626,12 +626,12 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
|
|||||||
wxPendingEvents = new wxList;
|
wxPendingEvents = new wxList;
|
||||||
wxPendingEvents->Append(this);
|
wxPendingEvents->Append(this);
|
||||||
|
|
||||||
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
|
|
||||||
|
|
||||||
// 3) Inform the system that new pending events are somwehere,
|
// 3) Inform the system that new pending events are somwehere,
|
||||||
// and that these should be processed in idle time.
|
// and that these should be processed in idle time.
|
||||||
|
|
||||||
wxWakeUpIdle();
|
wxWakeUpIdle();
|
||||||
|
|
||||||
|
wxLEAVE_CRIT_SECT(*wxPendingEventsLocker);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxEvtHandler::ProcessPendingEvents()
|
void wxEvtHandler::ProcessPendingEvents()
|
||||||
|
Reference in New Issue
Block a user