apr_status_t apr_pollset_poll apache

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:
pollsetThe pollset to use
timeoutThe 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.
numNumber of signalled descriptors (output parameter)
descriptorsArray 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值