… | |
… | |
194 | use strict 'vars'; |
194 | use strict 'vars'; |
195 | |
195 | |
196 | use base 'Exporter'; |
196 | use base 'Exporter'; |
197 | |
197 | |
198 | BEGIN { |
198 | BEGIN { |
199 | our $VERSION = '2.51'; |
199 | our $VERSION = '2.6'; |
200 | |
200 | |
201 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
201 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
202 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
202 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
203 | aio_readlink aio_fsync aio_fdatasync aio_readahead aio_rename aio_link |
203 | aio_readlink aio_sync aio_fsync aio_fdatasync aio_readahead aio_rename aio_link |
204 | aio_move aio_copy aio_group aio_nop aio_mknod aio_load aio_rmtree aio_mkdir |
204 | aio_move aio_copy aio_group aio_nop aio_mknod aio_load aio_rmtree aio_mkdir |
205 | aio_chown aio_chmod aio_utime aio_truncate); |
205 | aio_chown aio_chmod aio_utime aio_truncate); |
206 | our @EXPORT = (@AIO_REQ, qw(aioreq_pri aioreq_nice aio_block)); |
206 | our @EXPORT = (@AIO_REQ, qw(aioreq_pri aioreq_nice aio_block)); |
207 | our @EXPORT_OK = qw(poll_fileno poll_cb poll_wait flush |
207 | our @EXPORT_OK = qw(poll_fileno poll_cb poll_wait flush |
208 | min_parallel max_parallel max_idle |
208 | min_parallel max_parallel max_idle |
… | |
… | |
893 | |
893 | |
894 | $grp |
894 | $grp |
895 | } |
895 | } |
896 | } |
896 | } |
897 | |
897 | |
|
|
898 | =item aio_sync $callback->($status) |
|
|
899 | |
|
|
900 | Asynchronously call sync and call the callback when finished. |
|
|
901 | |
898 | =item aio_fsync $fh, $callback->($status) |
902 | =item aio_fsync $fh, $callback->($status) |
899 | |
903 | |
900 | Asynchronously call fsync on the given filehandle and call the callback |
904 | Asynchronously call fsync on the given filehandle and call the callback |
901 | with the fsync result code. |
905 | with the fsync result code. |
902 | |
906 | |