mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Functions | |
int | poll (pollfh fhs[], unsigned nfhs, int timeout) |
A mechanism to multiplex input/output over a set of file handles(file descriptors). |
Function Documentation
int 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:
-
fhs an array of PollFh struct carrying a FileHandle and bitmasks of events nfhs number of file handles timeout timer 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.
Definition at line 31 of file mbed_poll.cpp.
Generated on Tue Jul 12 2022 20:41:16 by 1.7.2