pub unsafe extern "C" fn ANeuralNetworksEvent_wait(
event: *mut ANeuralNetworksEvent,
) -> c_intExpand description
Waits until the execution completes.
More than one thread can wait on an event. When the execution completes, all threads will be released.
If {@link ANeuralNetworksExecution_setTimeout} was called on the execution corresponding to this event, and the execution is not able to complete before the duration is exceeded, the execution may be aborted, in which case {@link ANEURALNETWORKS_MISSED_DEADLINE_*} will be returned here.
If the execution contains a {@link ANEURALNETWORKS_WHILE} operation, and the condition model does not output false within the loop timeout duration, the execution will be aborted, and {@link ANEURALNETWORKS_MISSED_DEADLINE_*} will be returned here.
See {@link ANeuralNetworksExecution} for information on multithreaded usage.
Available since API level 27.
@param event The event that will be signaled on completion. @return ANEURALNETWORKS_NO_ERROR if the execution completed normally. ANEURALNETWORKS_UNMAPPABLE if the execution input or output memory cannot be properly mapped.