---
title: acl.himpi.sys_wait_epoll
description: "| 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); |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0410.html"
---

# acl.himpi.sys_wait_epoll

| 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) |
| 函数功能 | 使用Epoll模型进行媒体数据处理通道输入输出操作，等待媒体数据处理Epoll实例产生事件。 |
| 输入说明 | epoll\_fd：媒体数据处理Epoll实例句柄的指针地址。 max\_events：最大可返回的事件数，不应超过events数组的元素个数。 timeout：超时时间，单位是毫秒。 \-1：永久阻塞。 0：立即返回。 >0：配置具体的超时时间。 |
| 返回值说明 | event：hi\_dvpp\_epoll\_event数组，保存产生的事件信息。 event\_num：Epoll实际产生的事件数。 ret：int，错误码。 返回0表示成功。 返回非0表示失败，参见公共返回码。 |
| 约束说明 | acl.himpi.sys\_create\_epoll、acl.himpi.sys\_ctl\_epoll、acl.himpi.sys\_wait\_epoll、acl.himpi.sys\_close\_epoll这几个接口要配合使用，实现使用Epoll编程模型操作媒体数据处理通道的输入/输出数据。 VPC功能不支持使用该接口。 |
| 参考资源 | 接口调用流程及示例，参见JPEGE图片编码、VENC视频编码。 |
