aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLContext.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-28 16:41:24 +0100
committerMichael Bien <[email protected]>2010-02-28 16:41:24 +0100
commit19c1825b81e9add833077260bb937416268a1bf6 (patch)
tree3a7cc340d457b33c8eacd9652220ffca86592365 /src/com/mbien/opencl/CLContext.java
parentf24477382cc1c26d5f5fd0a09e2c42c7f60cb974 (diff)
introduced (package private) Disposable interface for forward compatiblility with JDK7's ARM blocks.
CLResource extends Disposable.
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r--src/com/mbien/opencl/CLContext.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java
index 4cc21d0f..6b09cc37 100644
--- a/src/com/mbien/opencl/CLContext.java
+++ b/src/com/mbien/opencl/CLContext.java
@@ -378,6 +378,10 @@ public class CLContext extends CLObject implements CLResource {
checkForError(ret, "error releasing context");
}
+ public void close() {
+ release();
+ }
+
/**
* Returns the CLPlatform this context is running on.
*/