aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLEventList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/CLEventList.java')
-rw-r--r--src/com/jogamp/opencl/CLEventList.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java
index a1ee5035..da88aa05 100644
--- a/src/com/jogamp/opencl/CLEventList.java
+++ b/src/com/jogamp/opencl/CLEventList.java
@@ -78,6 +78,19 @@ public final class CLEventList implements CLResource, AutoCloseable, Iterable<CL
return new EventIterator(events, size);
}
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getName()).append('[');
+ for (int i = 0; i < size; i++) {
+ sb.append(events[i].toString());
+ if(i+1 != size) {
+ sb.append(", ");
+ }
+ }
+ return sb.append(']').toString();
+ }
+
private static class EventIterator implements Iterator<CLEvent> {
private final CLEvent[] events;