diff --git a/src/com/jogamp/opencl/CLEvent.java b/src/com/jogamp/opencl/CLEvent.java index 78f7d3d..b0b2193 100644 --- a/src/com/jogamp/opencl/CLEvent.java +++ b/src/com/jogamp/opencl/CLEvent.java @@ -51,7 +51,7 @@ public class CLEvent extends CLObjectResource { private final CLEventProfilingInfoAccessor eventProfilingInfo; private final CLEventBinding binding; - CLEvent(CLContext context, long id) { + public CLEvent(CLContext context, long id) { super(context, id); binding = context.getPlatform().getEventBinding(); this.eventInfo = new CLEventInfoAccessor(); diff --git a/src/com/jogamp/opencl/CLObjectResource.java b/src/com/jogamp/opencl/CLObjectResource.java index fcea22c..3a8fe50 100644 --- a/src/com/jogamp/opencl/CLObjectResource.java +++ b/src/com/jogamp/opencl/CLObjectResource.java @@ -21,6 +21,7 @@ public CLObjectResource(CLContext context, long ID) { super(context, ID); } + @Override public void release() { if(released) { throw new RuntimeException(getClass().getSimpleName()+" was already released."); @@ -43,6 +44,7 @@ public final void close() { } } + @Override public boolean isReleased() { return released; }