Function cl3::context::retain_context [−][src]
pub fn retain_context(context: cl_context) -> Result<(), cl_int>
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.