… | |
… | |
1078 | Strictly equivalent to: |
1078 | Strictly equivalent to: |
1079 | |
1079 | |
1080 | IO::AIO::poll_wait, IO::AIO::poll_cb |
1080 | IO::AIO::poll_wait, IO::AIO::poll_cb |
1081 | while IO::AIO::nreqs; |
1081 | while IO::AIO::nreqs; |
1082 | |
1082 | |
|
|
1083 | =back |
|
|
1084 | |
1083 | =head3 CONTROLLING THE NUMBER OF THREADS |
1085 | =head3 CONTROLLING THE NUMBER OF THREADS |
1084 | |
1086 | |
1085 | =item IO::AIO::min_parallel $nthreads |
1087 | =item IO::AIO::min_parallel $nthreads |
1086 | |
1088 | |
1087 | Set the minimum number of AIO threads to C<$nthreads>. The current |
1089 | Set the minimum number of AIO threads to C<$nthreads>. The current |
… | |
… | |
1147 | |
1149 | |
1148 | You can still queue as many requests as you want. Therefore, |
1150 | You can still queue as many requests as you want. Therefore, |
1149 | C<max_oustsanding> is mainly useful in simple scripts (with low values) or |
1151 | C<max_oustsanding> is mainly useful in simple scripts (with low values) or |
1150 | as a stop gap to shield against fatal memory overflow (with large values). |
1152 | as a stop gap to shield against fatal memory overflow (with large values). |
1151 | |
1153 | |
|
|
1154 | =back |
|
|
1155 | |
1152 | =head3 STATISTICAL INFORMATION |
1156 | =head3 STATISTICAL INFORMATION |
|
|
1157 | |
|
|
1158 | =over |
1153 | |
1159 | |
1154 | =item IO::AIO::nreqs |
1160 | =item IO::AIO::nreqs |
1155 | |
1161 | |
1156 | Returns the number of requests currently in the ready, execute or pending |
1162 | Returns the number of requests currently in the ready, execute or pending |
1157 | states (i.e. for which their callback has not been invoked yet). |
1163 | states (i.e. for which their callback has not been invoked yet). |