Sorry, I forgot to send my reply to the list.
--- Begin Message ---
Quoting "Brandon Black" <[email protected]>:
On Thu, Jan 26, 2012 at 12:17 PM, <[email protected]> wrote:
I develop using Linux 2.6.9 libev 4.04. I can't upgrade the kernel
version, as it is part of a larger system.
My problem is that I could not set libev to generate 100ms timeouts.
It generates consistent timeouts around 1s, nothing less than that.
I tried on another machine with Ubuntu and a 2.6.3x kernel... but I got
the same results.
I'm passing the interval as 0.1
The fact that your code isn't getting subsecond timeouts on the Ubuntu
kernel either should rule out a 2.6.9-specific problem. Perhaps paste your
code? More likely than not, there's some basic bug in it.
Hi,
I'm including my code:
#include <ev.h>
ev_timer timeout_watcher;
void timeout_cb(EV_P_ ev_timer*w, int revents)
{
puts("timeout");
w->repeat = 1.;
ev_timer_again(EV_A_ w);
}
int main (void)
{
struct ev_loop *loop = EV_DEFAULT;
ev_timer_init(&timeout_watcher, timeout_cb, 0.1f, 0.);
ev_timer_start(loop, &timeout_watcher);
ev_run(loop, 0);
return 0;
}
Best Regards
Nilo Menezes
--- End Message ---
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev