Function tvm_sys::ffi::TVMBackendRunOnce [−][src]
pub unsafe extern "C" fn TVMBackendRunOnce(
handle: *mut *mut c_void,
f: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>,
cdata: *mut c_void,
nbytes: c_int
) -> c_int
Expand description
\brief Simple static initialization function. Run f once and set handle to be not null. This function is mainly used for test purpose.
\param handle A global address to indicate f \param f The function to be run \param cdata The closure data to pass to the function. \param nbytes Number of bytes in the closure data. \return 0 when no error is thrown, -1 when failure happens