timer in libinn
Russ Allbery
rra at stanford.edu
Wed Feb 7 08:48:35 UTC 2001
Alex Kiernan <alexk at demon.net> writes:
> Code to move timers into libinn, this seems to be doing the right
> thing; lib/timer.c and include/timer.h should be attached. This should
> cover both innfeed & innd. Still needs some docs writing, I'll get to
> that today, with luck.
Thanks, this is now in with a few modifications. I added some basic
documentation to the top of the header file, which is in as inn/timer.h
instead of timer.h (down the road, when we install libinn, we'll want to
install this header file). I removed the gethrtime call in favor of just
using gettimeofday, and while I really like the idea of using alloca, I
don't think we're ready for it and I went back to straight xmalloc. Down
the road, though, we should seriously look at putting the infrastructure
in place to use alloca. I can think of a bunch of stuff in INN that would
benefit from it.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-patches
mailing list