Skip to content

Commit

Permalink
public CLEvent constructor + missing @OverRide
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Jun 28, 2011
1 parent c353202 commit e7d0639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/jogamp/opencl/CLEvent.java
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/com/jogamp/opencl/CLObjectResource.java
Expand Up @@ -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.");
Expand All @@ -43,6 +44,7 @@ public final void close() {
}
}

@Override
public boolean isReleased() {
return released;
}
Expand Down

0 comments on commit e7d0639

Please sign in to comment.