diff options
author | Michael Bien <[email protected]> | 2011-06-29 00:28:32 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-06-29 00:28:32 +0200 |
commit | e7d0639b18d0965aa328c3034cd4683f94c3d2a4 (patch) | |
tree | c0ef2223887c0b71918363ac9f3efc56a597e54d /src/com/jogamp/opencl | |
parent | c3532027b08d16dd32066fb2ef4440f04b61ec26 (diff) |
public CLEvent constructor + missing @Override
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r-- | src/com/jogamp/opencl/CLEvent.java | 2 | ||||
-rw-r--r-- | src/com/jogamp/opencl/CLObjectResource.java | 2 |
2 files changed, 3 insertions, 1 deletions
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; } |