aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLEventList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/CLEventList.java')
-rw-r--r--src/com/mbien/opencl/CLEventList.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLEventList.java b/src/com/mbien/opencl/CLEventList.java
index 66b07d55..6a2716db 100644
--- a/src/com/mbien/opencl/CLEventList.java
+++ b/src/com/mbien/opencl/CLEventList.java
@@ -40,6 +40,10 @@ public final class CLEventList implements CLResource, Iterable<CLEvent> {
IDs.rewind();
}
+ public void close() {
+ release();
+ }
+
public CLEvent getEvent(int index) {
if(index >= size)
throw new IndexOutOfBoundsException("list contains "+size+" events, can not return event with index "+index);