From e7d0639b18d0965aa328c3034cd4683f94c3d2a4 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 29 Jun 2011 00:28:32 +0200 Subject: public CLEvent constructor + missing @Override --- src/com/jogamp/opencl/CLEvent.java | 2 +- src/com/jogamp/opencl/CLObjectResource.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/jogamp/opencl/CLEvent.java b/src/com/jogamp/opencl/CLEvent.java index 78f7d3dc..b0b2193c 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 fcea22c1..3a8fe500 100644 --- a/src/com/jogamp/opencl/CLObjectResource.java +++ b/src/com/jogamp/opencl/CLObjectResource.java @@ -21,6 +21,7 @@ abstract class CLObjectResource extends CLObject implements CLResource, AutoClos super(context, ID); } + @Override public void release() { if(released) { throw new RuntimeException(getClass().getSimpleName()+" was already released."); @@ -43,6 +44,7 @@ abstract class CLObjectResource extends CLObject implements CLResource, AutoClos } } + @Override public boolean isReleased() { return released; } -- cgit v1.2.3