Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Functions
poll functions

Data Structures

struct  pollfh
 

Functions

int poll (pollfh fhs[], unsigned nfhs, int timeout)
 A mechanism to multiplex input/output over a set of file handles(file descriptors). More...
 

Detailed Description

Function Documentation

int mbed::poll ( pollfh  fhs[],
unsigned  nfhs,
int  timeout 
)

A mechanism to multiplex input/output over a set of file handles(file descriptors).

For every file handle provided, poll() examines it for any events registered for that particular file handle.

Parameters
fhsan array of PollFh struct carrying a FileHandle and bitmasks of events
nfhsnumber of file handles
timeouttimer value to timeout or -1 for loop forever
Returns
number of file handles selected (for which revents is non-zero). 0 if timed out with nothing selected. -1 for error.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.