[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Non-blocking file IO without thread possible ?
- From: William Ahern <wahern@...>
- Date: Mon, 04 Sep 2006 13:45:34 -0700
On Sun, 2006-09-03 at 22:08 -0500, Javier Guerra wrote:
> On Sunday 03 September 2006 9:34 pm, Thomas Harning Jr. wrote:
> > However, libevnet provides many facilities for async work...
>
> for everything, except 'normal' files. unfortunately, kernel support is
> spotty on this.
>
> check this thread on libevent list archive:
>
> http://monkeymail.org/archives/libevent-users/2005-November/000039.html
>
A couple of places down my list of things to add to libevnet is a
wrapper around AIO (asynchronous I/O interface defined by SUSv3 which is
supposed to work w/ file I/O), and a threaded implementation for
platforms w/o real AIO (which would be almost all of them). This would
be exposed through the "bufio.h" interface of libevnet the same way
socket I/O is, through a file object which exports source/sink/poll
functions. Ultimately something like sendfile(2) would also be
supported, but it's all about baby steps.
--
William Ahern <wahern@barracudanetworks.com>
--------------------------------------------------
This message was scanned for Spam, Spyware and Viruses
For more information, please visit:
http://www.barracudanetworks.com