pub unsafe extern "C" fn hipUserObjectCreate(
    object_out: *mut *mut hipUserObject,
    ptr: *mut c_void,
    destroy: Option<unsafe extern "C" fn(_: *mut c_void)>,
    initialRefcount: u32,
    flags: u32
) -> hipError_t
Expand description

@brief Create an instance of userObject to manage lifetime of a resource.

@param [out] object_out - pointer to instace of userobj. @param [in] ptr - pointer to pass to destroy function. @param [in] destroy - destroy callback to remove resource. @param [in] initialRefcount - reference to resource. @param [in] flags - flags passed to API. @returns #hipSuccess, #hipErrorInvalidValue @warning : This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.