From 519cfb8a41e28e4d10e40496893a9aacf0bce6b1 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 9 Jul 2011 00:43:29 +0200 Subject: changed impl to use an extended ThreadPoolExecutor directly. --- test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/com/jogamp/opencl/util') diff --git a/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java b/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java index 6e5d5e99..1b2575f5 100644 --- a/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java +++ b/test/com/jogamp/opencl/util/concurrent/CLMultiContextTest.java @@ -132,16 +132,16 @@ public class CLMultiContextTest { CLSimpleContextFactory factory = CLQueueContextFactory.createSimple(programSource); CLCommandQueuePool pool = CLCommandQueuePool.create(factory, mc); - assertTrue(pool.getSize() > 0); + assertTrue(pool.getPoolSize() > 0); final int slice = 64; final int tasksPerQueue = 10; - final int taskCount = pool.getSize() * tasksPerQueue; + final int taskCount = pool.getPoolSize() * tasksPerQueue; IntBuffer data = Buffers.newDirectIntBuffer(slice*taskCount); List tasks = createTasks(data, taskCount, slice); - out.println("invoking "+tasks.size()+" tasks on "+pool.getSize()+" queues"); + out.println("invoking "+tasks.size()+" tasks on "+pool.getPoolSize()+" queues"); // blocking invoke List> results = pool.invokeAll(tasks); -- cgit v1.2.3