Problem using libev c++ timer

Zsbán Ambrus ambrus at math.bme.hu
Fri Dec 23 15:36:02 CET 2011


On Fri, Dec 23, 2011 at 1:09 PM, Savio Sebastian
<savio_joysebastian at yahoo.com> wrote:
>         stopTimer.start(0.,5);
>
> Here my problem is the timeout call back function is getting called
> immediatly after the program execution begins

You are setting the watcher to trigger after 0 seconds, then repeat
every 5 second.  No wonder it fires immediately.

Ambrus



More information about the libev mailing list