ANeuralNetworksEvent_createFromSyncFenceFd

Function ANeuralNetworksEvent_createFromSyncFenceFd 

Source
pub unsafe extern "C" fn ANeuralNetworksEvent_createFromSyncFenceFd(
    sync_fence_fd: c_int,
    event: *mut *mut ANeuralNetworksEvent,
) -> c_int
Expand description

Create a {@link ANeuralNetworksEvent} from a sync_fence file descriptor.

The newly created ANeuralNetworksEvent does not take ownership of the provided sync_fence_fd, it will instead dup the provided sync_fence_fd and own the duplicate.

@param sync_fence_fd The sync_fence file descriptor. @param event The newly created object or NULL if unsuccessful.

@return ANEURALNETWORKS_NO_ERROR if successful.

Available since API level 30.