Example #1
0
func CLRetainContext(context CL_context) CL_int {
	return CL_int(C.clRetainContext(context.cl_context))
}
Example #2
0
File: package.go Project: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainContext.html
func RetainContext(context Context) ErrorCode {
	return ErrorCode(C.clRetainContext(context.clContext))
}
Example #3
0
func retainContext(c *Context) {
	if c.clContext != nil {
		C.clRetainContext(c.clContext)
	}
}