summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mj.mccormack@samsung.com>2011-07-08 08:07:29 +0000
committerMike McCormack <mikem@ring3k.org>2011-07-08 08:07:29 +0000
commitc69221de2679082b13f88036a250e398227a6f8a (patch)
tree35146d4801dcea98ebabcd27fd3fc876964435b4 /legacy/ecore/src/lib/ecore/ecore_main.c
parentcd5abb2b0fcaaa98713bee45687bc6ea4c6e8ced (diff)
ecore: Only check timers on zero time left
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61149
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index 44f7689f3f..54fb39d2b5 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -599,7 +599,7 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
599 if (!ret && _ecore_timers_exists()) 599 if (!ret && _ecore_timers_exists())
600 { 600 {
601 double next_time = _ecore_timer_next_get(); 601 double next_time = _ecore_timer_next_get();
602 ret = _ecore_timers_exists() && (0.0 >= next_time); 602 ret = _ecore_timers_exists() && (0.0 == next_time);
603 } 603 }
604 604
605 _ecore_timer_enable_new(); 605 _ecore_timer_enable_new();
@@ -617,7 +617,7 @@ _ecore_main_gsource_dispatch(GSource *source __UNUSED__, GSourceFunc callback __
617 double next_time = _ecore_timer_next_get(); 617 double next_time = _ecore_timer_next_get();
618 618
619 events_ready = _ecore_event_exist(); 619 events_ready = _ecore_event_exist();
620 timers_ready = _ecore_timers_exists() && (0.0 >= next_time); 620 timers_ready = _ecore_timers_exists() && (0.0 == next_time);
621 idlers_ready = _ecore_idler_exist(); 621 idlers_ready = _ecore_idler_exist();
622 signals_ready = (_ecore_signal_count_get() > 0); 622 signals_ready = (_ecore_signal_count_get() > 0);
623 623
@@ -641,7 +641,6 @@ _ecore_main_gsource_dispatch(GSource *source __UNUSED__, GSourceFunc callback __
641 _ecore_idler_call(); 641 _ecore_idler_call();
642 642
643 events_ready = _ecore_event_exist(); 643 events_ready = _ecore_event_exist();
644 timers_ready = _ecore_timers_exists() && (0.0 >= next_time);
645 idlers_ready = _ecore_idler_exist(); 644 idlers_ready = _ecore_idler_exist();
646 645
647 if ((ecore_fds_ready || events_ready || timers_ready || idlers_ready || signals_ready)) 646 if ((ecore_fds_ready || events_ready || timers_ready || idlers_ready || signals_ready))