Hi,
I've just recently finished a replacement Scheduler implementation that
uses FreeBSD kqueue instead of select. The files are attached. This
should let me implement proper vnode watching, when I (finally) get round
to it. In the mean time I thought I'd put the code out there for the next
release. Bear in mind you need to use my other patch first, which I sent
in a few months ago. It's also in the FreeBSD ports.
A small change is needed for main.c++ - something along the lines of:
+#if defined(__FreeBSD__)
+ Scheduler::init();
+#endif
unsigned long program = Listener::FAMPROG, version = Listener::FAMVERS;
Perhaps some autoconf guru could add kqueue detection routines to configure.in
and send them to Jeremy Norris ?
BTW, is it ok if I used STL ? I'm really too lazy to roll my own linked
list routines :/
Thanks,
David Rufino
kqueue.tgz
Description: application/tar-gz
|