#include "wx/wxprec.h"
+#if wxUSE_TIMER
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/module.h"
#include "wx/unix/private/timer.h"
#include "wx/listimpl.cpp"
-WX_DEFINE_LIST(wxTimerList);
+WX_DEFINE_LIST(wxTimerList)
// trace mask for the debugging messages used here
#define wxTrace_Timer wxT("timer")
wxUnixTimerImpl * const timer = s->m_timer;
if ( timer->IsOneShot() )
{
+ // the timer needs to be stopped but don't call its Stop() from
+ // here as it would attempt to remove the timer from our list and
+ // we had already done it, so we just need to reset its state
+ timer->MarkStopped();
+
// don't need it any more
delete s;
}
return wxGetLocalTimeMillis() * 1000L;
}
+#endif // wxUSE_TIMER
+