… | |
… | |
75 | BEGIN { |
75 | BEGIN { |
76 | our $VERSION = '1.99'; |
76 | our $VERSION = '1.99'; |
77 | |
77 | |
78 | our @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
78 | our @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat |
79 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
79 | aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink |
80 | aio_fsync aio_fdatasync aio_readahead aio_rename aio_link aio_move); |
80 | aio_fsync aio_fdatasync aio_readahead aio_rename aio_link aio_move |
|
|
81 | aio_group); |
81 | our @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); |
82 | our @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); |
|
|
83 | |
|
|
84 | @IO::AIO::GRP::ISA = 'IO::AIO::REQ'; |
82 | |
85 | |
83 | require XSLoader; |
86 | require XSLoader; |
84 | XSLoader::load ("IO::AIO", $VERSION); |
87 | XSLoader::load ("IO::AIO", $VERSION); |
85 | } |
88 | } |
86 | |
89 | |
… | |
… | |
492 | callback with the fdatasync result code. |
495 | callback with the fdatasync result code. |
493 | |
496 | |
494 | If this call isn't available because your OS lacks it or it couldn't be |
497 | If this call isn't available because your OS lacks it or it couldn't be |
495 | detected, it will be emulated by calling C<fsync> instead. |
498 | detected, it will be emulated by calling C<fsync> instead. |
496 | |
499 | |
|
|
500 | =item aio_group $callback->() |
|
|
501 | |
|
|
502 | =item aio_sleep $fractional_seconds, $callback->() *NOT EXPORTED* |
|
|
503 | |
|
|
504 | Mainly used for debugging and benchmarking, this aio request puts one of |
|
|
505 | the request workers to sleep for the given time. |
|
|
506 | |
497 | =back |
507 | =back |
498 | |
508 | |
499 | =head2 IO::AIO::REQ CLASS |
509 | =head2 IO::AIO::REQ CLASS |
500 | |
510 | |
501 | All non-aggregate C<aio_*> functions return an object of this class when |
511 | All non-aggregate C<aio_*> functions return an object of this class when |