示例#1
0
文件: context.go 项目: xfong/gocl
func CLRetainContext(context CL_context) CL_int {
	return CL_int(C.clRetainContext(context.cl_context))
}
示例#2
0
文件: package.go 项目: 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))
}
示例#3
0
文件: context.go 项目: xfong/tmpCL
func retainContext(c *Context) {
	if c.clContext != nil {
		C.clRetainContext(c.clContext)
	}
}