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.112 by root, Tue Sep 11 08:25:16 2007 UTC vs.
Revision 1.114 by root, Thu Sep 20 17:05:22 2007 UTC

333 333
334If C<$offset> is undefined, then the current file descriptor offset will 334If C<$offset> is undefined, then the current file descriptor offset will
335be used (and updated), otherwise the file descriptor offset will not be 335be used (and updated), otherwise the file descriptor offset will not be
336changed by these calls. 336changed by these calls.
337 337
338If C<$length> is undefined in C<aio_write>, use the remaining length of C<$data>. 338If C<$length> is undefined in C<aio_write>, use the remaining length of C<$data>.
339 339
340If C<$dataoffset> is less than zero, it will be counted from the end of 340If C<$dataoffset> is less than zero, it will be counted from the end of
341C<$data>. 341C<$data>.
342 342
343The C<$data> scalar I<MUST NOT> be modified in any way while the request 343The C<$data> scalar I<MUST NOT> be modified in any way while the request
1207This is a very bad function to use in interactive programs because it 1207This is a very bad function to use in interactive programs because it
1208blocks, and a bad way to reduce concurrency because it is inexact: Better 1208blocks, and a bad way to reduce concurrency because it is inexact: Better
1209use an C<aio_group> together with a feed callback. 1209use an C<aio_group> together with a feed callback.
1210 1210
1211Sets the maximum number of outstanding requests to C<$nreqs>. If you 1211Sets the maximum number of outstanding requests to C<$nreqs>. If you
1212to queue up more than this number of requests, the next call to the 1212do queue up more than this number of requests, the next call to the
1213C<poll_cb> (and C<poll_some> and other functions calling C<poll_cb>) 1213C<poll_cb> (and C<poll_some> and other functions calling C<poll_cb>)
1214function will block until the limit is no longer exceeded. 1214function will block until the limit is no longer exceeded.
1215 1215
1216The default value is very large, so there is no practical limit on the 1216The default value is very large, so there is no practical limit on the
1217number of outstanding requests. 1217number of outstanding requests.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines