hmmmm try this. let me know if u see issues.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 16 Feb 2010 16:52:02 +0000 (16:52 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 16 Feb 2010 16:52:02 +0000 (16:52 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@46218 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_timer.c

index 843ea10..bdb5d3b 100644 (file)
@@ -406,8 +406,7 @@ _ecore_timer_enable_new(void)
 
    if (!timers_added) return;
    timers_added = 0;
-   EINA_INLIST_FOREACH(timers, timer)
-       timer->just_added = 0;
+   EINA_INLIST_FOREACH(timers, timer) timer->just_added = 0;
 }
 
 static inline Ecore_Timer *
@@ -465,16 +464,19 @@ _ecore_timer_call(double when)
    if (last_check > when)
      {
        /* User set time backwards */
-       EINA_INLIST_FOREACH(timers, timer)
-            timer->at -= (last_check - when);
+       EINA_INLIST_FOREACH(timers, timer) timer->at -= (last_check - when);
      }
    last_check = when;
    for (l = timers; l;)
      {
        timer = l;
        l = (Ecore_Timer *) EINA_INLIST_GET(l)->next;
+//        printf("_ecore_timer_call %3.3f <= %3.3f %i %i %p\n", 
+//               timer->at, when, timer->just_added, timer->delete_me, timer);
        if ((timer->at <= when) &&
-           (timer->just_added == 0) &&
+// hmm this ends up pausing some edje program iterators... disable for now
+// and see what the fallout is - if any?            
+//         (timer->just_added == 0) &&
            (timer->delete_me == 0))
          {
             timer->running = EINA_TRUE;