… | |
… | |
67 | use base 'Exporter'; |
67 | use base 'Exporter'; |
68 | |
68 | |
69 | use Fcntl (); |
69 | use Fcntl (); |
70 | |
70 | |
71 | BEGIN { |
71 | BEGIN { |
72 | $VERSION = '1.61'; |
72 | $VERSION = '1.71'; |
73 | |
73 | |
74 | @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
74 | @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
75 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
75 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
76 | aio_fsync aio_fdatasync aio_readahead); |
76 | aio_fsync aio_fdatasync aio_readahead); |
77 | @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel |
77 | @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel |
… | |
… | |
345 | } |
345 | } |
346 | } elsif (!$nreq) { |
346 | } elsif (!$nreq) { |
347 | # finished |
347 | # finished |
348 | undef $statcb; |
348 | undef $statcb; |
349 | undef $schedcb; |
349 | undef $schedcb; |
350 | $cb->(\@dirs, \@nondirs); |
350 | $cb->(\@dirs, \@nondirs) if $cb; |
351 | undef $cb; |
351 | undef $cb; |
352 | } |
352 | } |
353 | }; |
353 | }; |
354 | $statcb = sub { |
354 | $statcb = sub { |
355 | my ($status, $entry) = @_; |
355 | my ($status, $entry) = @_; |