hi_mpi_sys_wait_epoll

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

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.

Restrictions

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 file descriptor of the epoll instance for media data processing.

events

Output

hi_dvpp_epoll_event array for the event information.

max_events

Input

Maximum number of events. Must not exceed the number of elements in the events array.

timeout

Input

Timeout interval (ms).

  • -1: permanently blocked.
  • 0: return immediately.
  • > 0: timeout interval.

event_num

Output

Pointer to the number of events occurred on the epoll instance.

Returns