From d2050aea14e6ab1a6429eab56f0612c2deb6184f Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 8 Nov 2009 21:48:29 +0100 Subject: improved Exception handling in CLProgram and CLKernel. introduced CLResource interface for releasable resources. CLProgram is now rebuildable. --- src/com/mbien/opencl/CLResource.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/com/mbien/opencl/CLResource.java (limited to 'src/com/mbien/opencl/CLResource.java') diff --git a/src/com/mbien/opencl/CLResource.java b/src/com/mbien/opencl/CLResource.java new file mode 100644 index 00000000..4f0d9d01 --- /dev/null +++ b/src/com/mbien/opencl/CLResource.java @@ -0,0 +1,14 @@ +package com.mbien.opencl; + +/** + * Releasable OpenCL resource. + * @author Michael Bien + */ +public interface CLResource { + + /** + * Releases the OpenCL resource. + */ + public void release(); + +} -- cgit v1.2.3