Beispiel #1
0
func (q *CommandQueue) release() error {
	if q.id != nil {
		if err := C.clReleaseCommandQueue(q.id); err != C.CL_SUCCESS {
			return Cl_error(err)
		}
		q.id = nil
	}
	return nil
}
Beispiel #2
0
func CLReleaseCommandQueue(command_queue CL_command_queue) CL_int {
	return CL_int(C.clReleaseCommandQueue(command_queue.cl_command_queue))
}
Beispiel #3
0
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clReleaseCommandQueue.html
func ReleaseCommandQueue(cq CommandQueue) {
	C.clReleaseCommandQueue(cq)
}
Beispiel #4
0
func releaseCommandQueue(q *CommandQueue) {
	if q.clQueue != nil {
		C.clReleaseCommandQueue(q.clQueue)
		q.clQueue = nil
	}
}