ecore: Only check timers if we need to

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 61282
This commit is contained in:
Mike McCormack 2011-07-12 11:56:36 +00:00 committed by Mike McCormack
parent 6052bbe9c1
commit c64f48b32a
1 changed files with 3 additions and 1 deletions

View File

@ -600,6 +600,8 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
else
ecore_fds_ready = (_ecore_main_fdh_glib_mark_active() > 0);
_ecore_main_fd_handlers_cleanup();
if (ecore_fds_ready)
ret = TRUE;
/* check timers after updating loop time */
_ecore_time_loop_time = ecore_time_get();
@ -610,7 +612,7 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
in_main_loop--;
return ret || ecore_fds_ready;
return ret;
}
/* like we just came out of main_loop_select in _ecore_main_select */