sys_wait_epoll
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
Waits for the epoll instance of media data processing to generate an event when the epoll model is used to perform input and output operations on the media data processing channel.
Prototype
- C Prototype
1hi_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 Function
1event, event_num, ret = acl.himpi.sys_wait_epoll(epoll_fd, max_events, timeout)
Parameter Description
|
Parameter |
Description |
|---|---|
|
epoll_fd |
Int, pointer address of the media data processing epoll instance handle. The handle is created by calling acl.himpi.sys_create_epoll. |
|
max_events |
Int, maximum number of events. Must not exceed the number of elements in the events array. |
|
timeout |
Int, timeout interval, in milliseconds.
|
Return Value Description
|
Return Value |
Description |
|---|---|
|
event |
List, which saves the generated event information. For details, see hi_dvpp_epoll_event. |
|
event_num |
Int, number of events occurred on the epoll instance. |
|
ret |
Int, error code. 0: success. Other values: failures. For details, see Common Return Codes. |
Restrictions
- acl.himpi.sys_create_epoll, acl.himpi.sys_ctl_epoll, acl.himpi.sys_wait_epoll, and acl.himpi.sys_close_epoll must be used together to operate the input and output data of the media data processing channel by using the epoll programming model.
- The VPC function does not support this API.