diff options
author | Michael Bien <[email protected]> | 2011-05-09 17:30:19 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-09 17:30:19 +0200 |
commit | 1c38b7ef96910260b64843214279ac4683005609 (patch) | |
tree | d0d2c38da50a94e13f7ed2c90db0f44a1b678ae4 /src/com/jogamp/opencl/util/concurrent/CLQueueContext.java | |
parent | c59bc50229181ab9cb0e5012d7bb5caf2faa781f (diff) |
added submitAll() utility method
junit test now covering queue contexts switching
improved javadoc.
Diffstat (limited to 'src/com/jogamp/opencl/util/concurrent/CLQueueContext.java')
-rw-r--r-- | src/com/jogamp/opencl/util/concurrent/CLQueueContext.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java b/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java index 11b86889..3f89ad0e 100644 --- a/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java +++ b/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java @@ -11,6 +11,13 @@ import com.jogamp.opencl.CLResource; import java.util.Map; /** + * Superclass for all per-queue contexts as used in {@link CLCommandQueuePool}s. + * A context will usually hold queue (and therefore often device) specific resources used + * in tasks of the same queue. + * <p> + * Possible candidates for those resources can be compiled CLPrograms, CLKernels + * or even pre allocated CLBuffers. + * </p> * @author Michael Bien */ public abstract class CLQueueContext implements CLResource { @@ -29,6 +36,10 @@ public abstract class CLQueueContext implements CLResource { return queue.getContext(); } + /** + * A simple queue context holding a precompiled program and its kernels. + * @author Michael Bien + */ public static class CLSimpleQueueContext extends CLQueueContext { public final CLProgram program; |