… | |
… | |
233 | Example: wait till there are no outstanding requests anymore: |
233 | Example: wait till there are no outstanding requests anymore: |
234 | |
234 | |
235 | IO::AIO::poll_wait, IO::AIO::poll_cb |
235 | IO::AIO::poll_wait, IO::AIO::poll_cb |
236 | while IO::AIO::nreqs; |
236 | while IO::AIO::nreqs; |
237 | |
237 | |
|
|
238 | =item IO::AIO::flush |
|
|
239 | |
|
|
240 | Wait till all outstanding AIO requests have been handled. |
|
|
241 | |
|
|
242 | Strictly equivalent to: |
|
|
243 | |
|
|
244 | IO::AIO::poll_wait, IO::AIO::poll_cb |
|
|
245 | while IO::AIO::nreqs; |
|
|
246 | |
|
|
247 | =item IO::AIO::poll |
|
|
248 | |
|
|
249 | Waits until some requests have been handled. |
|
|
250 | |
|
|
251 | Strictly equivalent to: |
|
|
252 | |
|
|
253 | IO::AIO::poll_wait, IO::AIO::poll_cb |
|
|
254 | if IO::AIO::nreqs; |
|
|
255 | |
238 | =item IO::AIO::min_parallel $nthreads |
256 | =item IO::AIO::min_parallel $nthreads |
239 | |
257 | |
240 | Set the minimum number of AIO threads to C<$nthreads>. The default is |
258 | Set the minimum number of AIO threads to C<$nthreads>. The default is |
241 | C<1>, which means a single asynchronous operation can be done at one time |
259 | C<1>, which means a single asynchronous operation can be done at one time |
242 | (the number of outstanding operations, however, is unlimited). |
260 | (the number of outstanding operations, however, is unlimited). |