fam
[Top] [All Lists]

[fam] kqueue code

To: fam@xxxxxxxxxxx
Subject: [fam] kqueue code
From: David Rufino <daverufino@xxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2001 02:59:42 +0100
Cc: Jeremy Norris <ishmael27@xxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
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

Attachment: kqueue.tgz
Description: application/tar-gz

<Prev in Thread] Current Thread [Next in Thread>
  • [fam] kqueue code, David Rufino <=