ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.90 by root, Mon Oct 30 23:30:00 2006 UTC vs.
Revision 1.93 by root, Wed Nov 8 01:59:58 2006 UTC

189use strict 'vars'; 189use strict 'vars';
190 190
191use base 'Exporter'; 191use base 'Exporter';
192 192
193BEGIN { 193BEGIN {
194 our $VERSION = '2.1'; 194 our $VERSION = '2.2';
195 195
196 our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat 196 our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat
197 aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink 197 aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink
198 aio_readlink aio_fsync aio_fdatasync aio_readahead aio_rename aio_link 198 aio_readlink aio_fsync aio_fdatasync aio_readahead aio_rename aio_link
199 aio_move aio_copy aio_group aio_nop aio_mknod); 199 aio_move aio_copy aio_group aio_nop aio_mknod);
971 poll => 'r', nice => 1, 971 poll => 'r', nice => 1,
972 cb => &IO::AIO::poll_cb); 972 cb => &IO::AIO::poll_cb);
973 973
974=item IO::AIO::poll_wait 974=item IO::AIO::poll_wait
975 975
976If there are any outstanding requests and none of them in the result
976Wait till the result filehandle becomes ready for reading (simply does a 977phase, wait till the result filehandle becomes ready for reading (simply
977C<select> on the filehandle. This is useful if you want to synchronously 978does a C<select> on the filehandle. This is useful if you want to
978wait for some requests to finish). 979synchronously wait for some requests to finish).
979 980
980See C<nreqs> for an example. 981See C<nreqs> for an example.
981 982
982=item IO::AIO::poll 983=item IO::AIO::poll
983 984
984Waits until some requests have been handled. 985Waits until some requests have been handled.
985 986
987Returns the number of requests processed, but is otherwise strictly
986Strictly equivalent to: 988equivalent to:
987 989
988 IO::AIO::poll_wait, IO::AIO::poll_cb 990 IO::AIO::poll_wait, IO::AIO::poll_cb
989 if IO::AIO::nreqs;
990 991
991=item IO::AIO::flush 992=item IO::AIO::flush
992 993
993Wait till all outstanding AIO requests have been handled. 994Wait till all outstanding AIO requests have been handled.
994 995

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines