Function opencl3::context::context::release_context[][src]

pub fn release_context(context: *mut c_void) -> Result<(), i32>
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.