From 19c1825b81e9add833077260bb937416268a1bf6 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 28 Feb 2010 16:41:24 +0100 Subject: introduced (package private) Disposable interface for forward compatiblility with JDK7's ARM blocks. CLResource extends Disposable. --- src/com/mbien/opencl/CLCommandQueue.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/mbien/opencl/CLCommandQueue.java') diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index 582bce5f..0001eb65 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -779,6 +779,10 @@ public class CLCommandQueue extends CLObject implements CLResource { checkForError(ret, "can not release command queue"); } + public void close() { + release(); + } + private static PointerBuffer copy2NIO(PointerBuffer buffer, long a) { return buffer.put(2, a).position(2); } -- cgit v1.2.3