From: Enlightenment S. <no-...@en...> - 2011-06-13 02:58:28
|
Log: ecore: Fix glib main loop busy waiting Author: mike_m Date: 2011-06-12 19:58:20 -0700 (Sun, 12 Jun 2011) New Revision: 60253 Trac: http://trac.enlightenment.org/e/changeset/60253 Modified: trunk/ecore/src/lib/ecore/ecore_main.c Modified: trunk/ecore/src/lib/ecore/ecore_main.c =================================================================== --- trunk/ecore/src/lib/ecore/ecore_main.c 2011-06-13 02:57:01 UTC (rev 60252) +++ trunk/ecore/src/lib/ecore/ecore_main.c 2011-06-13 02:58:20 UTC (rev 60253) @@ -459,7 +459,7 @@ if (_ecore_timers_exists()) { double t = _ecore_timer_next_get(); - *next_time = (t / 1000.0); + *next_time = (t * 1000.0); } else *next_time = -1; @@ -504,14 +504,14 @@ double next_time = _ecore_timer_next_get(); events_ready = _ecore_event_exist(); - timers_ready = _ecore_timers_exists() && (0.0 <= next_time); + timers_ready = _ecore_timers_exists() && (0.0 >= next_time); idlers_ready = _ecore_idler_exist(); signals_ready = (_ecore_signal_count_get() > 0); in_main_loop++; INF("enter idling=%d fds=%d events=%d signals=%d timers=%d (next=%.2f) idlers=%d", ecore_idling, ecore_fds_ready, events_ready, signals_ready, - _ecore_timers_exists(), next_time, idlers_ready); + timers_ready, next_time, idlers_ready); if (ecore_idling && events_ready) { @@ -531,7 +531,7 @@ _ecore_idler_call(); events_ready = _ecore_event_exist(); - timers_ready = _ecore_timers_exists() && (0.0 <= next_time); + timers_ready = _ecore_timers_exists() && (0.0 >= next_time); idlers_ready = _ecore_idler_exist(); if ((ecore_fds_ready || events_ready || timers_ready || idlers_ready || signals_ready)) |