aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/util/concurrent/CLTask.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-05-04 16:26:46 +0200
committerMichael Bien <[email protected]>2011-05-04 16:26:46 +0200
commit3a20670487663cfbadea480de6e0322c3055afcf (patch)
treed0c29209ca14aa635c194aaff9c5a578f9d55f4f /src/com/jogamp/opencl/util/concurrent/CLTask.java
parent6fcf15f11e2a982b480855fbc75e430e5f2b9ad6 (diff)
initial import of CLCommandQueuePool and CLTask.
Diffstat (limited to 'src/com/jogamp/opencl/util/concurrent/CLTask.java')
-rw-r--r--src/com/jogamp/opencl/util/concurrent/CLTask.java19
1 files changed, 19 insertions, 0 deletions
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<R> {
+
+ /**
+ * Runs the task on a queue and returns its result.
+ */
+ R run(CLCommandQueue queue);
+
+}