diff options
author | Michael Bien <[email protected]> | 2011-06-19 22:31:05 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-06-19 22:31:05 +0200 |
commit | 826dacffbae941a35a7cc74515751ddb1d5711a2 (patch) | |
tree | 5cf5d5f67ceda1cbf136a6f30295f4ffa8c6c640 /src/com/jogamp/opencl/CLResource.java | |
parent | 00096ac5b2c824fc7e8d7203229c8f246caf833c (diff) |
- added isReleased() to CLResource, made CLObject public.
- a CLResource will throw an Exception if released twice.
Diffstat (limited to 'src/com/jogamp/opencl/CLResource.java')
-rw-r--r-- | src/com/jogamp/opencl/CLResource.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLResource.java b/src/com/jogamp/opencl/CLResource.java index 4918e725..cd14c59c 100644 --- a/src/com/jogamp/opencl/CLResource.java +++ b/src/com/jogamp/opencl/CLResource.java @@ -39,4 +39,8 @@ public interface CLResource { */ public void release(); + /** + * Returns true if {@link #release()} has been called. + */ + public boolean isReleased(); } |