hi_mpi_sys_wait_epoll
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
Function Description
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.
The hi_mpi_sys_create_epoll, hi_mpi_sys_ctl_epoll, hi_mpi_sys_wait_epoll, and hi_mpi_sys_close_epoll APIs must be used together to operate the input/output data of the media data processing channel using the epoll programming model. The VPC function does not support this API.
Prototype
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)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
epoll_fd |
Input |
Pointer to the handle of the media data processing epoll instance. |
|
events |
Output |
hi_dvpp_epoll_event array, which stores the generated event information. |
|
max_events |
Input |
Maximum number of events that can be returned. The value cannot exceed the number of elements in the events array. |
|
timeout |
Input |
Timeout interval (ms).
|
|
event_num |
Output |
Pointer to the number of events generated by the epoll. |
Returns
- 0: success
- Other values: failure. For details, see Common Return Codes.