Name

SPVM::Sys::Poll - Poll System Call

Usage

use Sys::Poll;

Description

Sys::Poll is the class for the poll function.

Class Methods

poll

static method poll : int ($fds : Sys::Poll::PollfdArray, $nfds : int, $timeout : int);

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.

See the poll function in Linux.

The file discritors are a Sys::Poll::PollfdArray object.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License