backport to 1.0 ?

Vincent

On Tue, 26 Jul 2011, Enlightenment SVN wrote:

> Log:
> fix timer precision handling to do what it was meant to do to begin with
>
>
>
> Author:       raster
> Date:         2011-07-26 00:01:55 -0700 (Tue, 26 Jul 2011)
> New Revision: 61730
> Trac:         http://trac.enlightenment.org/e/changeset/61730
>
> Modified:
>  trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore/ecore_timer.c
>
> Modified: trunk/ecore/ChangeLog
> ===================================================================
> --- trunk/ecore/ChangeLog     2011-07-26 07:00:19 UTC (rev 61729)
> +++ trunk/ecore/ChangeLog     2011-07-26 07:01:55 UTC (rev 61730)
> @@ -263,3 +263,9 @@
> 2011-07-22  Mike Blumenkrantz
>
>         * Added ecore_con_url_url_get
> +
> +2011-07-26  Carsten Haitzler (The Rasterman)
> +
> +        * Fix timer precision handling for grouping timer ticks so
> +        they actually do tick off together
> +
>
> Modified: trunk/ecore/src/lib/ecore/ecore_timer.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore/ecore_timer.c   2011-07-26 07:00:19 UTC (rev 
> 61729)
> +++ trunk/ecore/src/lib/ecore/ecore_timer.c   2011-07-26 07:01:55 UTC (rev 
> 61730)
> @@ -590,15 +590,17 @@
> _ecore_timer_after_get(Ecore_Timer *base)
> {
>    Ecore_Timer *timer = (Ecore_Timer *) EINA_INLIST_GET(base)->next;
> +   Ecore_Timer *valid_timer = NULL;
>    double maxtime = base->at + precision;
>
> -   while ((timer) && ((timer->delete_me) || (timer->just_added)) && 
> (timer->at <= maxtime))
> -     timer = (Ecore_Timer *) EINA_INLIST_GET(timer)->next;
> +   while ((timer) && (timer->at < maxtime))
> +     {
> +        if (!((timer->delete_me) || (timer->just_added)))
> +           valid_timer = timer;
> +        timer = (Ecore_Timer *) EINA_INLIST_GET(timer)->next;
> +     }
>
> -   if ((!timer) || (timer->at > maxtime))
> -     return NULL;
> -
> -   return timer;
> +   return valid_timer;
> }
>
> double
> @@ -612,8 +614,7 @@
>    if (!first) return -1;
>
>    second = _ecore_timer_after_get(first);
> -   if (second)
> -     first = second;
> +   if (second) first = second;
>
>    now = ecore_loop_time_get();
>    in = first->at - now;
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to