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

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.249 by root, Wed Jul 30 22:00:04 2014 UTC vs.
Revision 1.250 by root, Mon Aug 18 04:26:02 2014 UTC

1500 aio_stat [$etcdir, "passwd"], sub { 1500 aio_stat [$etcdir, "passwd"], sub {
1501 # yay 1501 # yay
1502 }; 1502 };
1503 }; 1503 };
1504 1504
1505That C<aio_wd> is a request and not a normal function shows that creating 1505The fact that C<aio_wd> is a request and not a normal function shows that
1506an IO::AIO::WD object is itself a potentially blocking operation, which is 1506creating an IO::AIO::WD object is itself a potentially blocking operation,
1507why it is done asynchronously. 1507which is why it is done asynchronously.
1508 1508
1509To stat the directory obtained with C<aio_wd> above, one could write 1509To stat the directory obtained with C<aio_wd> above, one could write
1510either of the following three request calls: 1510either of the following three request calls:
1511 1511
1512 aio_lstat "/etc" , sub { ... # pathname as normal string 1512 aio_lstat "/etc" , sub { ... # pathname as normal string

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines