… | |
… | |
692 | systems that do not deliver the inode information. |
692 | systems that do not deliver the inode information. |
693 | |
693 | |
694 | =item IO::AIO::READDIR_DIRS_FIRST |
694 | =item IO::AIO::READDIR_DIRS_FIRST |
695 | |
695 | |
696 | When this flag is set, then the names will be returned in an order where |
696 | When this flag is set, then the names will be returned in an order where |
697 | likely directories come first. This is useful when you need to quickly |
697 | likely directories come first, in optimal stat order. This is useful when |
698 | find directories, or you want to find all directories while avoiding to |
698 | you need to quickly find directories, or you want to find all directories |
699 | stat() each entry. |
699 | while avoiding to stat() each entry. |
700 | |
700 | |
701 | If the system returns type information in readdir, then this is used |
701 | If the system returns type information in readdir, then this is used |
702 | to find directories directly. Otherwise, likely directories are files |
702 | to find directories directly. Otherwise, likely directories are names |
703 | beginning with ".", or otherwise files with no dots, of which files with |
703 | beginning with ".", or otherwise names with no dots, of which names with |
704 | short names are tried first. |
704 | short names are tried first. |
705 | |
705 | |
706 | =item IO::AIO::READDIR_STAT_ORDER |
706 | =item IO::AIO::READDIR_STAT_ORDER |
707 | |
707 | |
708 | When this flag is set, then the names will be returned in an order |
708 | When this flag is set, then the names will be returned in an order |
… | |
… | |
1417 | |
1417 | |
1418 | If not all requests were processed for whatever reason, the filehandle |
1418 | If not all requests were processed for whatever reason, the filehandle |
1419 | will still be ready when C<poll_cb> returns, so normally you don't have to |
1419 | will still be ready when C<poll_cb> returns, so normally you don't have to |
1420 | do anything special to have it called later. |
1420 | do anything special to have it called later. |
1421 | |
1421 | |
|
|
1422 | Apart from calling C<IO::AIO::poll_cb> when the event filehandle becomes |
|
|
1423 | ready, it can be beneficial to call this function from loops which submit |
|
|
1424 | a lot of requests, to make sure the results get processed when they become |
|
|
1425 | available and not just when the loop is finished and the event loop takes |
|
|
1426 | over again. This function returns very fast when there are no outstanding |
|
|
1427 | requests. |
|
|
1428 | |
1422 | Example: Install an Event watcher that automatically calls |
1429 | Example: Install an Event watcher that automatically calls |
1423 | IO::AIO::poll_cb with high priority (more examples can be found in the |
1430 | IO::AIO::poll_cb with high priority (more examples can be found in the |
1424 | SYNOPSIS section, at the top of this document): |
1431 | SYNOPSIS section, at the top of this document): |
1425 | |
1432 | |
1426 | Event->io (fd => IO::AIO::poll_fileno, |
1433 | Event->io (fd => IO::AIO::poll_fileno, |