summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLEvent.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-22 23:38:56 +0100
committerMichael Bien <[email protected]>2010-02-22 23:38:56 +0100
commitd78faf0ef678cc87f5220d2cb8eccbe173449541 (patch)
tree8a4dcff14f70c88869d6bdc095817474ae729311 /src/com/mbien/opencl/CLEvent.java
parent7c83da1d2e3e8d122e562408a63a13928cc97c83 (diff)
introduced CLObject as common superclass for all OpenCL objects.
Diffstat (limited to 'src/com/mbien/opencl/CLEvent.java')
-rw-r--r--src/com/mbien/opencl/CLEvent.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/mbien/opencl/CLEvent.java b/src/com/mbien/opencl/CLEvent.java
index 5d244190..bcc59efc 100644
--- a/src/com/mbien/opencl/CLEvent.java
+++ b/src/com/mbien/opencl/CLEvent.java
@@ -14,20 +14,13 @@ import static com.mbien.opencl.CLException.*;
* {@link com.mbien.opencl.CLCommandQueue.Mode#PROFILING_MODE}.
* @author Michael Bien
*/
-public class CLEvent implements CLResource {
-
- public final CLContext context;
- public final long ID;
-
- private final CL cl;
+public class CLEvent extends CLObject implements CLResource {
private final CLEventInfoAccessor eventInfo;
private final CLEventProfilingInfoAccessor eventProfilingInfo;
CLEvent(CLContext context, long id) {
- this.context = context;
- this.cl = context.cl;
- this.ID = id;
+ super(context, id);
this.eventInfo = new CLEventInfoAccessor();
this.eventProfilingInfo = new CLEventProfilingInfoAccessor();
}