Function cl3::context::release_context [−][src]
pub fn release_context(context: cl_context) -> Result<(), cl_int>
Expand description
Release an OpenCL context.
Calls clReleaseContext to decrement 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.