summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mj.mccormack@samsung.com>2011-07-12 11:56:36 +0000
committerMike McCormack <mikem@ring3k.org>2011-07-12 11:56:36 +0000
commitc64f48b32aaeb9f4b754c70af481aa63337d6f99 (patch)
tree07d05796013680a745138db08e15c1230546adef /legacy/ecore/src/lib/ecore/ecore_main.c
parent6052bbe9c1122ed8dd1bc8448d0f8b918762fca0 (diff)
ecore: Only check timers if we need to
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61282
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index b291ac88f4..00f70a2060 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -600,6 +600,8 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
600 else 600 else
601 ecore_fds_ready = (_ecore_main_fdh_glib_mark_active() > 0); 601 ecore_fds_ready = (_ecore_main_fdh_glib_mark_active() > 0);
602 _ecore_main_fd_handlers_cleanup(); 602 _ecore_main_fd_handlers_cleanup();
603 if (ecore_fds_ready)
604 ret = TRUE;
603 605
604 /* check timers after updating loop time */ 606 /* check timers after updating loop time */
605 _ecore_time_loop_time = ecore_time_get(); 607 _ecore_time_loop_time = ecore_time_get();
@@ -610,7 +612,7 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
610 612
611 in_main_loop--; 613 in_main_loop--;
612 614
613 return ret || ecore_fds_ready; 615 return ret;
614} 616}
615 617
616/* like we just came out of main_loop_select in _ecore_main_select */ 618/* like we just came out of main_loop_select in _ecore_main_select */