forked from enlightenment/efl
Ecore ecore_main.c: Refactoring _ecore_main_loop_iterate_internal().
SVN revision: 59559
This commit is contained in:
parent
a88b14c25e
commit
b9eef78c41
|
@ -1486,10 +1486,9 @@ _ecore_main_loop_iterate_internal(int once_only)
|
||||||
{
|
{
|
||||||
_ecore_time_loop_time = ecore_time_get();
|
_ecore_time_loop_time = ecore_time_get();
|
||||||
if (!_ecore_idler_call()) goto start_loop;
|
if (!_ecore_idler_call()) goto start_loop;
|
||||||
if (_ecore_main_select(0.0) > 0) have_event = 1;
|
if (_ecore_main_select(0.0) > 0) break;
|
||||||
if (_ecore_event_exist()) break;
|
if (_ecore_event_exist()) break;
|
||||||
if (_ecore_signal_count_get() > 0) have_signal = 1;
|
if (_ecore_signal_count_get() > 0) break;
|
||||||
if (have_event || have_signal) break;
|
|
||||||
if (_ecore_timers_exists()) goto start_loop;
|
if (_ecore_timers_exists()) goto start_loop;
|
||||||
if (do_quit) break;
|
if (do_quit) break;
|
||||||
}
|
}
|
||||||
|
@ -1510,9 +1509,9 @@ _ecore_main_loop_iterate_internal(int once_only)
|
||||||
{
|
{
|
||||||
_ecore_time_loop_time = ecore_time_get();
|
_ecore_time_loop_time = ecore_time_get();
|
||||||
if (!_ecore_idler_call()) goto start_loop;
|
if (!_ecore_idler_call()) goto start_loop;
|
||||||
if (_ecore_main_select(0.0) > 0) have_event = 1;
|
if (_ecore_main_select(0.0) > 0) break;
|
||||||
if (_ecore_event_exist()) break;
|
if (_ecore_event_exist()) break;
|
||||||
if (_ecore_signal_count_get() > 0) have_signal = 1;
|
if (_ecore_signal_count_get() > 0) break;
|
||||||
if (have_event || have_signal) break;
|
if (have_event || have_signal) break;
|
||||||
next_time = _ecore_timer_next_get();
|
next_time = _ecore_timer_next_get();
|
||||||
if (next_time <= 0) break;
|
if (next_time <= 0) break;
|
||||||
|
|
Loading…
Reference in New Issue