diff options
author | Michael Bien <[email protected]> | 2010-02-28 16:41:24 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-28 16:41:24 +0100 |
commit | 19c1825b81e9add833077260bb937416268a1bf6 (patch) | |
tree | 3a7cc340d457b33c8eacd9652220ffca86592365 /src/com/mbien/opencl/CLCommandQueue.java | |
parent | f24477382cc1c26d5f5fd0a09e2c42c7f60cb974 (diff) |
introduced (package private) Disposable interface for forward compatiblility with JDK7's ARM blocks.
CLResource extends Disposable.
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r-- | src/com/mbien/opencl/CLCommandQueue.java | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |