pth_poll

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

pth_poll, pth_select - pseudothread poll and select system calls

SYNOPSIS

#include <pthr_pseudothread.h>

int pth_poll (pseudothread, struct pollfd *fds, unsigned int n, int timeout);
int pth_select (pseudothread, int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);

DESCRIPTION

pth_poll behaves like the poll(2) system call. It specifies an array n of fds file descriptor structures each of which is checked for an I/O event. If timeout is greater than or equal to zero, then the call will return after this many milliseconds if no I/O events are detected. If timeout is negative, then the timeout is infinite.
pth_select behaves like the select(2) system call.
Note that pth_select is implemented as a library on top of pth_poll, and is considerably less efficient than pth_poll. It is recommended that you rewrite any code which uses pth_select/select to use pth_poll/poll instead.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3

SEE ALSO

pth_timeout(3).