http://apr.apache.org/docs/apr/trunk/group__apr__poll.html#ga6b31d7b3a7b2d356370403dd2b79ecf3
apr_status_t apr_pollset_poll | ( | apr_pollset_t * | pollset, |
apr_interval_time_t | timeout, | ||
apr_int32_t * | num, | ||
const apr_pollfd_t ** | descriptors | ||
) |
Block for activity on the descriptor(s) in a pollset
-
Parameters:
-
pollset The pollset to use timeout The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollset_wakeup() has been called. num Number of signalled descriptors (output parameter) descriptors Array of signalled descriptors (output parameter)
-
Remarks:
- APR_EINTR will be returned if the pollset has been created with APR_POLLSET_WAKEABLE, apr_pollset_wakeup() has been called while waiting for activity, and there were no signalled descriptors at the time of the wakeup call.
- Multiple signalled conditions for the same descriptor may be reported in one or more returned apr_pollfd_t structures, depending on the implementation.