Languages

Menu
Sites
Language
service and ecore_timer_add stops after few seconds

Hi,
I've write a servie that use ecore_timer_add to make tasks periodically.
 

Eina_Bool my_func(void *data EINA_UNUSED) {
    dlog_print(DLOG_INFO, LOG_TAG, "my_func called... %d", (unsigned)time(NULL));
	return EINA_TRUE;
}


bool service_app_create(void *data)
{

	ecore_timer_loop_add(5, my_func, NULL);

    return true;
}

 

but  when service is started tha call of "my_func" stops after 10 seconds.. why?

 

Responses

1 Replies
Slawek Kowalski

Make sure you don't have any error in

my_func(...)

body.