… | |
… | |
193 | use strict 'vars'; |
193 | use strict 'vars'; |
194 | |
194 | |
195 | use base 'Exporter'; |
195 | use base 'Exporter'; |
196 | |
196 | |
197 | BEGIN { |
197 | BEGIN { |
198 | our $VERSION = '3.2'; |
198 | our $VERSION = '3.23'; |
199 | |
199 | |
200 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
200 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
201 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
201 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
202 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
202 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
203 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
203 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
… | |
… | |
568 | C<IO::AIO::DT_UNKNOWN> means just that: readdir does not know. If you need to |
568 | C<IO::AIO::DT_UNKNOWN> means just that: readdir does not know. If you need to |
569 | know, you have to run stat yourself. Also, for speed reasons, the C<$type> |
569 | know, you have to run stat yourself. Also, for speed reasons, the C<$type> |
570 | scalars are read-only: you can not modify them. |
570 | scalars are read-only: you can not modify them. |
571 | |
571 | |
572 | C<$inode> is the inode number (which might not be exact on systems with 64 |
572 | C<$inode> is the inode number (which might not be exact on systems with 64 |
573 | bit inode numbers and 32 bit perls). On systems that do not deliver the |
573 | bit inode numbers and 32 bit perls). This field has unspecified content on |
574 | inode information, this will always be zero. |
574 | systems that do not deliver the inode information. |
575 | |
575 | |
576 | =item IO::AIO::READDIR_DIRS_FIRST |
576 | =item IO::AIO::READDIR_DIRS_FIRST |
577 | |
577 | |
578 | When this flag is set, then the names will be returned in an order where |
578 | When this flag is set, then the names will be returned in an order where |
579 | likely directories come first. This is useful when you need to quickly |
579 | likely directories come first. This is useful when you need to quickly |
… | |
… | |
1045 | =item cancel $req |
1045 | =item cancel $req |
1046 | |
1046 | |
1047 | Cancels the request, if possible. Has the effect of skipping execution |
1047 | Cancels the request, if possible. Has the effect of skipping execution |
1048 | when entering the B<execute> state and skipping calling the callback when |
1048 | when entering the B<execute> state and skipping calling the callback when |
1049 | entering the the B<result> state, but will leave the request otherwise |
1049 | entering the the B<result> state, but will leave the request otherwise |
1050 | untouched. That means that requests that currently execute will not be |
1050 | untouched (with the exception of readdir). That means that requests that |
1051 | stopped and resources held by the request will not be freed prematurely. |
1051 | currently execute will not be stopped and resources held by the request |
|
|
1052 | will not be freed prematurely. |
1052 | |
1053 | |
1053 | =item cb $req $callback->(...) |
1054 | =item cb $req $callback->(...) |
1054 | |
1055 | |
1055 | Replace (or simply set) the callback registered to the request. |
1056 | Replace (or simply set) the callback registered to the request. |
1056 | |
1057 | |