Wait for activity on the file descriptors in this.
This function waits up to the specified timeout
. A timeout of
CLOCK_TIME_NONE waits forever.
For Poll objects created with Poll, this function can only be called from a single thread at a time. If called from multiple threads, -1 will be returned with errno set to EPERM.
This is not true for timer Poll objects created with Poll.timer, where it is allowed to have multiple threads waiting simultaneously.
this |
a Poll. |
timeout |
a timeout in nanoseconds. |
The number of PollFD in this that have activity or 0
when no activity was detected after |