Function opencl3::context::context::retain_context[][src]

pub fn retain_context(context: *mut c_void) -> Result<(), i32>
Expand description

Retain an OpenCL context.
Calls clRetainContext to increment the context reference count.

  • context - the cl_context of the OpenCL context.

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