summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-02-03 15:52:28 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-02-03 15:52:28 -0600
commit73aecd73abdb8cf12cd12b5e5eb2d7eb0d60fa81 (patch)
treee04faaafc50e735fd71397f061b5fbb0ad0617c8 /src/tests
parent4e9335547fb1f2a0d8f9178c083b18779503d81e (diff)
downloadenlightenment-73aecd73abdb8cf12cd12b5e5eb2d7eb0d60fa81.tar.gz
Replace all timer_add with timer_loop_add
So yeah, I've literally used sed to replace every occurrence of ecore_time_add() with ecore_timer_loop_add() because I'm reasonably confident that no part of E has a legitimate need for timer based on the exact current time. It would be really nice if I'm not wrong. :) The reason for this is the incredible spew of clock_gettime() calls I'm seeing on an ARM system (that should have a vdso for gettime, but...) This can amount to thousands of system calls per second. #YOLO
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/focusgrab.c2
-rw-r--r--src/tests/fullscreen.c2
-rw-r--r--src/tests/override_fullscreen.c2
-rw-r--r--src/tests/shaped_input.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/focusgrab.c b/src/tests/focusgrab.c
index 96456899d0..26e87dac81 100644
--- a/src/tests/focusgrab.c
+++ b/src/tests/focusgrab.c
@@ -16,7 +16,7 @@ main(void)
ecore_evas_init();
ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
ecore_evas_show(ee);
- ecore_timer_add(3.0, (Ecore_Task_Cb)_focus, ee);
+ ecore_timer_loop_add(3.0, (Ecore_Task_Cb)_focus, ee);
ecore_main_loop_begin();
return 0;
}
diff --git a/src/tests/fullscreen.c b/src/tests/fullscreen.c
index 892574f3f5..2fa5022036 100644
--- a/src/tests/fullscreen.c
+++ b/src/tests/fullscreen.c
@@ -27,7 +27,7 @@ main(void)
ecore_evas_init();
ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- ecore_timer_add(2, fs, ee);
+ ecore_timer_loop_add(2, fs, ee);
ecore_evas_show(ee);
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, (Ecore_Event_Handler_Cb)key, ee);
ecore_main_loop_begin();
diff --git a/src/tests/override_fullscreen.c b/src/tests/override_fullscreen.c
index 331119b790..a6adf333cb 100644
--- a/src/tests/override_fullscreen.c
+++ b/src/tests/override_fullscreen.c
@@ -25,7 +25,7 @@ main(void)
ecore_x_netwm_state_request_send(a, 0,
ECORE_X_WINDOW_STATE_FULLSCREEN, -1, 1);
ecore_x_icccm_name_class_set(a, "override_fullscreen", "test");
- ecore_timer_add(1.0, test_state, NULL);
+ ecore_timer_loop_add(1.0, test_state, NULL);
ecore_main_loop_begin();
return 0;
}
diff --git a/src/tests/shaped_input.c b/src/tests/shaped_input.c
index ebe9f6ad81..417c73be9b 100644
--- a/src/tests/shaped_input.c
+++ b/src/tests/shaped_input.c
@@ -37,7 +37,7 @@ main(void)
a = ecore_x_window_input_new(0, 0, 0, 100, 100);
ecore_x_window_show(a);
- ecore_timer_add(0.01, _shape, NULL);
+ ecore_timer_loop_add(0.01, _shape, NULL);
ecore_x_icccm_name_class_set(a, "shaped_input", "test");