service and ecore_timer_add stops after few seconds
By Domenico Mecca
06 Apr 2020 07:20
English
1 Replies
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?
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------