On Tue, 2009-01-20 at 23:33 +0900, kirthika varadarajan wrote:
> I am writing a simple application in which i need to generate an event
> for every 5 min.
>  
> I just created a thread inside the thread i need to create an event
> for every 5 min.
>  
> I refered to DM6467, there the timers are in kernel and i am not able
> to link it in my application.
>  
> Suggest me how to generate events for every 5 min .
>  

One way would be to use setitimer() from your application and watch for
signals using sigaction(). For eg: you could install a signal handler to
watch for expiry after the desired duration for SIGVTALRM.


Regards,
Philby



_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to