c函数原型 |
hi_s32 hi_mpi_sys_wait_epoll(hi_s32 epoll_fd, hi_dvpp_epoll_event *events, hi_s32 max_events, hi_s32 timeout, hi_s32 *event_num); |
---|---|
Python函数 |
event, event_num,ret = acl.himpi.sys_wait_epoll(epoll_fd, max_events, timeout) |
函数功能 |
等待DVPP Epoll实例产生事件。 昇腾310 AI处理器,当前版本该接口预留。 昇腾910 AI处理器,当前版本该接口预留。 |
输入说明 |
epoll_fd:DVPP Epoll实例句柄。 max_events:最大可返回的事件数,不应超过events数组的元素个数。
timeout:超时时间,单位是毫秒。
|
返回值说明 |
event:hi_dvpp_epoll_event数组,保存产生的事件信息。 event_num:Epoll实际产生的事件数。 ret:int,错误码。
|
约束说明 |
acl.himpi.sys_create_epoll、acl.himpi.sys_ctl_epoll、acl.himpi.sys_wait_epoll、acl.himpi.sys_close_epoll这几个接口要配合使用。使用Epoll模型进行DVPP通道输入输出操作。 |
注意事项 |
无 |
参考资源 |
无 |