From ba5b8263f3bf5393eafcf185f5948f1554034ee1 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 28 Nov 1999 18:46:55 +0000 Subject: [PATCH] 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 --- src/common/event.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/event.cpp b/src/common/event.cpp index bfaf9a41b4..795bbef448 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -626,12 +626,12 @@ 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() -- 2.45.2