| 1 | package SPVM::Sys::Poll; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::Sys::Poll - Poll System Call | ||
| 8 | |||
| 9 | =head1 Usage | ||
| 10 | |||
| 11 | use Sys::Poll; | ||
| 12 | |||
| 13 | =head1 Description | ||
| 14 | |||
| 15 | C<Sys::Poll> is the class for the poll function. | ||
| 16 | |||
| 17 | =head1 Class Methods | ||
| 18 | |||
| 19 | =head2 poll | ||
| 20 | |||
| 21 | C<static method poll : int ($fds : L<Sys::Poll::PollfdArray|SPVM::Sys::Poll::PollfdArray>, $nfds : int, $timeout : int);> | ||
| 22 | |||
| 23 | poll() performs a similar task to select(2): it waits for one of a set of file descriptors to become ready to perform I/O. | ||
| 24 | |||
| 25 | See the L<poll|https://linux.die.net/man/2/poll> function in Linux. | ||
| 26 | |||
| 27 | The file discritors are a L<Sys::Poll::PollfdArray|SPVM::Sys::Poll::PollfdArray> object. | ||
| 28 | |||
| 29 | =head1 See Also | ||
| 30 | |||
| 31 | =over 2 | ||
| 32 | |||
| 33 | =item * L<Sys|SPVM::Sys> | ||
| 34 | |||
| 35 | =back | ||
| 36 | |||
| 37 | =head1 Copyright & License | ||
| 38 | |||
| 39 | Copyright (c) 2023 Yuki Kimoto | ||
| 40 | |||
| 41 | MIT License | ||
| 42 |