[][src]Function opencl3::memory::retain_mem_object

pub fn retain_mem_object(memobj: *mut c_void) -> Result<(), i32>

Retain an OpenCL memory object.
Calls clRetainMemObject to increment the memory object reference count.

  • memobj - the OpenCL memory object.

returns an empty Result or the error code from the OpenCL C API function.