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.99 by root, Sun Jan 7 21:32:20 2007 UTC vs.
Revision 1.100 by root, Sun Jan 7 21:36:58 2007 UTC

634as those tend to return 0 or 1 as link counts, which disables the 634as those tend to return 0 or 1 as link counts, which disables the
635directory counting heuristic. 635directory counting heuristic.
636 636
637=cut 637=cut
638 638
639sub aio_scandir($$$) { 639sub aio_scandir($$;$) {
640 aio_block { 640 aio_block {
641 my ($path, $maxreq, $cb) = @_; 641 my ($path, $maxreq, $cb) = @_;
642 642
643 my $pri = aioreq_pri; 643 my $pri = aioreq_pri;
644 644
724 } 724 }
725} 725}
726 726
727=item aio_rmtree $path, $callback->($status) 727=item aio_rmtree $path, $callback->($status)
728 728
729Delete a directory tree starting (and including) C<$path>, return the status of the final C<rmdir> only. 729Delete a directory tree starting (and including) C<$path>, return the
730status of the final C<rmdir> only. This is a composite request that
730This is a composite request that uses C<aio_scandir> to recurse into and rmdir directories, and 731uses C<aio_scandir> to recurse into and rmdir directories, and unlink
731unlink everything else. 732everything else.
732 733
733=cut 734=cut
734 735
735sub aio_rmtree; 736sub aio_rmtree;
736sub aio_rmtree { 737sub aio_rmtree($;$) {
737 aio_block { 738 aio_block {
738 my ($path, $cb) = @_; 739 my ($path, $cb) = @_;
739 740
740 my $pri = aioreq_pri; 741 my $pri = aioreq_pri;
741 my $grp = aio_group $cb; 742 my $grp = aio_group $cb;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines