aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLEvent.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-06-19 22:31:05 +0200
committerMichael Bien <[email protected]>2011-06-19 22:31:05 +0200
commit826dacffbae941a35a7cc74515751ddb1d5711a2 (patch)
tree5cf5d5f67ceda1cbf136a6f30295f4ffa8c6c640 /src/com/jogamp/opencl/CLEvent.java
parent00096ac5b2c824fc7e8d7203229c8f246caf833c (diff)
- added isReleased() to CLResource, made CLObject public.
- a CLResource will throw an Exception if released twice.
Diffstat (limited to 'src/com/jogamp/opencl/CLEvent.java')
-rw-r--r--src/com/jogamp/opencl/CLEvent.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLEvent.java b/src/com/jogamp/opencl/CLEvent.java
index 95b82ab8..78f7d3dc 100644
--- a/src/com/jogamp/opencl/CLEvent.java
+++ b/src/com/jogamp/opencl/CLEvent.java
@@ -45,7 +45,7 @@ import static com.jogamp.opencl.CLException.*;
* {@link com.jogamp.opencl.CLCommandQueue.Mode#PROFILING_MODE}.
* @author Michael Bien
*/
-public class CLEvent extends CLObject implements CLResource {
+public class CLEvent extends CLObjectResource {
private final CLEventInfoAccessor eventInfo;
private final CLEventProfilingInfoAccessor eventProfilingInfo;
@@ -76,6 +76,7 @@ public class CLEvent extends CLObject implements CLResource {
@Override
public void release() {
+ super.release();
int ret = binding.clReleaseEvent(ID);
checkForError(ret, "can not release event");
}