From 3a20670487663cfbadea480de6e0322c3055afcf Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 4 May 2011 16:26:46 +0200 Subject: initial import of CLCommandQueuePool and CLTask. --- src/com/jogamp/opencl/util/concurrent/CLTask.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/com/jogamp/opencl/util/concurrent/CLTask.java (limited to 'src/com/jogamp/opencl/util/concurrent/CLTask.java') diff --git a/src/com/jogamp/opencl/util/concurrent/CLTask.java b/src/com/jogamp/opencl/util/concurrent/CLTask.java new file mode 100644 index 00000000..ebecb936 --- /dev/null +++ b/src/com/jogamp/opencl/util/concurrent/CLTask.java @@ -0,0 +1,19 @@ +/* + * Created on Tuesday, May 03 2011 18:09 + */ +package com.jogamp.opencl.util.concurrent; + +import com.jogamp.opencl.CLCommandQueue; + +/** + * A task executed on a command queue. + * @author Michael Bien + */ +public interface CLTask { + + /** + * Runs the task on a queue and returns its result. + */ + R run(CLCommandQueue queue); + +} -- cgit v1.2.3