Re: kqueue experiences or sample?
Re: kqueue experiences or sample?
On Tue, Nov 11, 2003 at 08:57:19PM +1100, Dale Gillard wrote:
>
I have an app that has to poll the file system for directory and 'date
>
modified' changes. Cocoa doesn't provide notifications for file system
>
changes, and Carbon's implementation is very basic and not useful for
>
my purposes.
>
>
Panther's BSD layer now includes an implementation of kqueue/kevent.
>
Has anyone tried using kqueue/kevent? Or even got some sample code
>
they'd love to share?
Calum Robinson has written a daemon that adds kqueue-based filesystem
notification support to the Finder:
<
http://homepage.mac.com/calumr/main.m>
It only checks the open windows at startup instead of polling, so it's
really just a demo, but it does seem to work. Some people have
mentioned that it has serious issues on network filesystems, so do
some testing first...
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.