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

Comparing IO-AIO/README (file contents):
Revision 1.32 by root, Thu Oct 2 11:35:03 2008 UTC vs.
Revision 1.33 by root, Sun Oct 12 22:40:52 2008 UTC

465 aio_move $srcpath, $dstpath, $callback->($status) 465 aio_move $srcpath, $dstpath, $callback->($status)
466 Try to move the *file* (directories not supported as either source 466 Try to move the *file* (directories not supported as either source
467 or destination) from $srcpath to $dstpath and call the callback with 467 or destination) from $srcpath to $dstpath and call the callback with
468 the 0 (error) or -1 ok. 468 the 0 (error) or -1 ok.
469 469
470 This is a composite request that tries to rename(2) the file first. 470 This is a composite request that tries to rename(2) the file first;
471 If rename files with "EXDEV", it copies the file with "aio_copy" 471 if rename fails with "EXDEV", it copies the file with "aio_copy"
472 and, if that is successful, unlinking the $srcpath. 472 and, if that is successful, unlinks the $srcpath.
473 473
474 aio_scandir $path, $maxreq, $callback->($dirs, $nondirs) 474 aio_scandir $path, $maxreq, $callback->($dirs, $nondirs)
475 Scans a directory (similar to "aio_readdir") but additionally tries 475 Scans a directory (similar to "aio_readdir") but additionally tries
476 to efficiently separate the entries of directory $path into two sets 476 to efficiently separate the entries of directory $path into two sets
477 of names, directories you can recurse into (directories), and ones 477 of names, directories you can recurse into (directories), and ones
715 does not impose any limits). 715 does not impose any limits).
716 716
717 If the feed does not queue more requests when called, it will be 717 If the feed does not queue more requests when called, it will be
718 automatically removed from the group. 718 automatically removed from the group.
719 719
720 If the feed limit is 0, it will be set to 2 automatically. 720 If the feed limit is 0 when this method is called, it will be set to
721 2 automatically.
721 722
722 Example: 723 Example:
723 724
724 # stat all files in @files, but only ever use four aio requests concurrently: 725 # stat all files in @files, but only ever use four aio requests concurrently:
725 726
735 limit $grp $num 736 limit $grp $num
736 Sets the feeder limit for the group: The feeder will be called 737 Sets the feeder limit for the group: The feeder will be called
737 whenever the group contains less than this many requests. 738 whenever the group contains less than this many requests.
738 739
739 Setting the limit to 0 will pause the feeding process. 740 Setting the limit to 0 will pause the feeding process.
741
742 The default value for the limit is 0, but note that setting a feeder
743 automatically bumps it up to 2.
740 744
741 SUPPORT FUNCTIONS 745 SUPPORT FUNCTIONS
742 EVENT PROCESSING AND EVENT LOOP INTEGRATION 746 EVENT PROCESSING AND EVENT LOOP INTEGRATION
743 $fileno = IO::AIO::poll_fileno 747 $fileno = IO::AIO::poll_fileno
744 Return the *request result pipe file descriptor*. This filehandle 748 Return the *request result pipe file descriptor*. This filehandle

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines