]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timerimpl.cpp
osx-cocoa updates
[wxWidgets.git] / src / common / timerimpl.cpp
index 3f94268d218ef9f88d6a81870df78c398ab2a0f5..c2ac8e8712865e56c09eaf220652e61f02642c85 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "wx/private/timer.h"
 #include "wx/utils.h"               // for wxNewId()
+#include "wx/thread.h"
 
 wxTimerImpl::wxTimerImpl(wxTimer *timer)
 {
@@ -48,7 +49,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid)
 void wxTimerImpl::SendEvent()
 {
     wxTimerEvent event(*m_timer);
-    (void)m_owner->ProcessEvent(event);
+    (void)m_owner->SafelyProcessEvent(event);
 }
 
 bool wxTimerImpl::Start(int milliseconds, bool oneShot)