ANeuralNetworksDevice_wait

Function ANeuralNetworksDevice_wait 

Source
pub unsafe extern "C" fn ANeuralNetworksDevice_wait(
    device: *const ANeuralNetworksDevice,
) -> c_int
Expand description

Wait until the device is in a live state.

A device may encounter internal errors and temporarily enter a dead state. A call that uses a device in such a state will return with the error {@link ANEURALNETWORKS_DEAD_OBJECT}. ANeuralNetworksDevice_wait will block until the device is in a live state.

@param device The representation of the specified device.

@return ANEURALNETWORKS_NO_ERROR if successful.

Available since API level 30.