ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.357 by root, Tue Jan 11 02:15:58 2011 UTC vs.
Revision 1.358 by sf-exg, Tue Jan 11 08:43:48 2011 UTC

1618always get a readiness notification instantly, and your read (or possibly 1618always get a readiness notification instantly, and your read (or possibly
1619write) will still block on the disk I/O. 1619write) will still block on the disk I/O.
1620 1620
1621Another way to view it is that in the case of sockets, pipes, character 1621Another way to view it is that in the case of sockets, pipes, character
1622devices and so on, there is another party (the sender) that delivers data 1622devices and so on, there is another party (the sender) that delivers data
1623on it's own, but in the case of files, there is no such thing: the disk 1623on its own, but in the case of files, there is no such thing: the disk
1624will not send data on it's own, simply because it doesn't know what you 1624will not send data on its own, simply because it doesn't know what you
1625wish to read - you would first have to request some data. 1625wish to read - you would first have to request some data.
1626 1626
1627Since files are typically not-so-well supported by advanced notification 1627Since files are typically not-so-well supported by advanced notification
1628mechanism, libev tries hard to emulate POSIX behaviour with respect 1628mechanism, libev tries hard to emulate POSIX behaviour with respect
1629to files, even though you should not use it. The reason for this is 1629to files, even though you should not use it. The reason for this is

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines