Beispiel #1
0
func CLRetainContext(context CL_context) CL_int {
	return CL_int(C.clRetainContext(context.cl_context))
}
Beispiel #2
0
// 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))
}
Beispiel #3
0
func retainContext(c *Context) {
	if c.clContext != nil {
		C.clRetainContext(c.clContext)
	}
}