Re: Poll / Kqueue on Mac OS X

2008-12-15 Thread Marc Lehmann
On Mon, Dec 15, 2008 at 11:23:31AM +1300, Space Ship Traveller wrote: > I haven't benchmarked kqueue. This wasn't really about benchmarking - it > was more about scratching my particular itch. I don't expect to ever have > a huge number of fds to query, so at this point it is a bit > inconseq

Re: How do I cancel a timer?

2008-12-15 Thread Marc Lehmann
On Mon, Dec 15, 2008 at 06:34:10PM +0200, Graham Leggett wrote: > Can someone confirm first of all for me that ev_timer_stop is the > correct way to cancel a timer? Yes - are you sure you don't start it again, or modify it in illegal ways? > The docs make no mention of how you destroy a timer

How do I cancel a timer?

2008-12-15 Thread Graham Leggett
Hi all, I have been trying to track down a problem in my code where a timer is being triggered after a call to: ev_timer_stop(msg->c->s->e->loop, &msg->timer.timer); The ev_timer_stop is being called when the timer is being cleaned up, however the timer is somehow remaining active, a