Background tasks with libev

2013-04-03 Thread Kevyn-Alexandre Paré
Hi, As my past habits was to always create a thread when something requires more processing time. I'm a bit confused to when to use thread with libev and how to manage longer tasks. My first thought is that I have started to use libev to remove the overhead of thread, context switching and mut

Re: Regd ev_timer

2013-04-03 Thread Marc Lehmann
On Wed, Apr 03, 2013 at 11:56:09AM +1100, Varun Chandramohan wrote: > Thanks Marc, that seem clear. Would you be able to answer the question I > asked Jann about the timer. Well, did you try reading my answer? Hint: it's in the documentation, and ev_now_update is a good starting point. If anyth