--- IO-AIO/AIO.pm 2007/01/07 22:59:57 1.101 +++ IO-AIO/AIO.pm 2007/03/24 19:19:11 1.104 @@ -192,7 +192,7 @@ use base 'Exporter'; BEGIN { - our $VERSION = '2.32'; + our $VERSION = '2.33'; our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink @@ -471,7 +471,7 @@ aioreq_pri $pri; add $grp aio_open $path, O_RDONLY, 0, sub { - my ($fh) = @_ + my $fh = shift or return $grp->result (-1); aioreq_pri $pri; @@ -1080,6 +1080,8 @@ IO::AIO::poll_wait, IO::AIO::poll_cb while IO::AIO::nreqs; +=back + =head3 CONTROLLING THE NUMBER OF THREADS =item IO::AIO::min_parallel $nthreads @@ -1149,8 +1151,12 @@ C is mainly useful in simple scripts (with low values) or as a stop gap to shield against fatal memory overflow (with large values). +=back + =head3 STATISTICAL INFORMATION +=over + =item IO::AIO::nreqs Returns the number of requests currently in the ready, execute or pending