]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
test for timegm() added
[wxWidgets.git] / src / common / event.cpp
index bfaf9a41b446a5113ecaa628607d0c3655e9fed1..795bbef44856bbc83d6004b09c21da7a95bf9c79 100644 (file)
@@ -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()