语言

Menu
Sites
Language
running thread on background service

I'd like to run thread on background service app

I used Ecore_Timer and ecore_timer_add

I tested it in native application, it works on it 

but, it doesn't work on service app.

I'd like to know why it doesn't work in service app and if I need to use other api to make thread

响应

1 回复
Alex Ashirov

Hi,

Ecore_Timer works fine from a service app. Please make sure that you are call ecore_timer_add() when main loop has been already started. Don’t call it from main(), but call it e.g. from “create” callback instead.