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.80 by root, Thu Oct 26 16:28:33 2006 UTC vs.
Revision 1.81 by root, Fri Oct 27 19:17:23 2006 UTC

443recurse into (everything else, including symlinks to directories). 443recurse into (everything else, including symlinks to directories).
444 444
445C<aio_scandir> is a composite request that creates of many sub requests_ 445C<aio_scandir> is a composite request that creates of many sub requests_
446C<$maxreq> specifies the maximum number of outstanding aio requests that 446C<$maxreq> specifies the maximum number of outstanding aio requests that
447this function generates. If it is C<< <= 0 >>, then a suitable default 447this function generates. If it is C<< <= 0 >>, then a suitable default
448will be chosen (currently 6). 448will be chosen (currently 4).
449 449
450On error, the callback is called without arguments, otherwise it receives 450On error, the callback is called without arguments, otherwise it receives
451two array-refs with path-relative entry names. 451two array-refs with path-relative entry names.
452 452
453Example: 453Example:
494 494
495 my $pri = aioreq_pri; 495 my $pri = aioreq_pri;
496 496
497 my $grp = aio_group $cb; 497 my $grp = aio_group $cb;
498 498
499 $maxreq = 6 if $maxreq <= 0; 499 $maxreq = 4 if $maxreq <= 0;
500 500
501 # stat once 501 # stat once
502 aioreq_pri $pri; 502 aioreq_pri $pri;
503 add $grp aio_stat $path, sub { 503 add $grp aio_stat $path, sub {
504 return $grp->result () if $_[0]; 504 return $grp->result () if $_[0];
955 *$sym 955 *$sym
956} 956}
957 957
958min_parallel 8; 958min_parallel 8;
959 959
960END {
961 max_parallel 0;
962}
963
9641; 9601;
965 961
966=head2 FORK BEHAVIOUR 962=head2 FORK BEHAVIOUR
967 963
968This module should do "the right thing" when the process using it forks: 964This module should do "the right thing" when the process using it forks:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines