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.102 by root, Mon Jan 8 20:45:04 2007 UTC vs.
Revision 1.104 by root, Sat Mar 24 19:19:11 2007 UTC

190use strict 'vars'; 190use strict 'vars';
191 191
192use base 'Exporter'; 192use base 'Exporter';
193 193
194BEGIN { 194BEGIN {
195 our $VERSION = '2.32'; 195 our $VERSION = '2.33';
196 196
197 our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat 197 our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat
198 aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink 198 aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink
199 aio_readlink aio_fsync aio_fdatasync aio_readahead aio_rename aio_link 199 aio_readlink aio_fsync aio_fdatasync aio_readahead aio_rename aio_link
200 aio_move aio_copy aio_group aio_nop aio_mknod aio_load aio_rmtree aio_mkdir); 200 aio_move aio_copy aio_group aio_nop aio_mknod aio_load aio_rmtree aio_mkdir);
1078Strictly equivalent to: 1078Strictly equivalent to:
1079 1079
1080 IO::AIO::poll_wait, IO::AIO::poll_cb 1080 IO::AIO::poll_wait, IO::AIO::poll_cb
1081 while IO::AIO::nreqs; 1081 while IO::AIO::nreqs;
1082 1082
1083=back
1084
1083=head3 CONTROLLING THE NUMBER OF THREADS 1085=head3 CONTROLLING THE NUMBER OF THREADS
1084 1086
1085=item IO::AIO::min_parallel $nthreads 1087=item IO::AIO::min_parallel $nthreads
1086 1088
1087Set the minimum number of AIO threads to C<$nthreads>. The current 1089Set the minimum number of AIO threads to C<$nthreads>. The current
1147 1149
1148You can still queue as many requests as you want. Therefore, 1150You can still queue as many requests as you want. Therefore,
1149C<max_oustsanding> is mainly useful in simple scripts (with low values) or 1151C<max_oustsanding> is mainly useful in simple scripts (with low values) or
1150as a stop gap to shield against fatal memory overflow (with large values). 1152as a stop gap to shield against fatal memory overflow (with large values).
1151 1153
1154=back
1155
1152=head3 STATISTICAL INFORMATION 1156=head3 STATISTICAL INFORMATION
1157
1158=over
1153 1159
1154=item IO::AIO::nreqs 1160=item IO::AIO::nreqs
1155 1161
1156Returns the number of requests currently in the ready, execute or pending 1162Returns the number of requests currently in the ready, execute or pending
1157states (i.e. for which their callback has not been invoked yet). 1163states (i.e. for which their callback has not been invoked yet).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines