From eb0aeae72378942509942314b346ad9ed30e1333 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 5 Apr 2011 23:01:25 +0200 Subject: CachedBufferFactory constructors for CLEventList allows efficient creation of large amounts of small lists. --- src/com/jogamp/opencl/CLEventList.java | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java index f2b98adf..23ef3963 100644 --- a/src/com/jogamp/opencl/CLEventList.java +++ b/src/com/jogamp/opencl/CLEventList.java @@ -29,6 +29,7 @@ package com.jogamp.opencl; import com.jogamp.common.AutoCloseable; +import com.jogamp.common.nio.CachedBufferFactory; import com.jogamp.common.nio.PointerBuffer; import java.util.Iterator; @@ -51,24 +52,43 @@ public final class CLEventList implements CLResource, AutoCloseable, Iterable= size) throw new IndexOutOfBoundsException("list contains "+size+" events, can not return event with index "+index); -- cgit v1.2.3