diff options
author | Michael Bien <[email protected]> | 2011-05-09 03:00:55 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-05-09 03:00:55 +0200 |
commit | c59bc50229181ab9cb0e5012d7bb5caf2faa781f (patch) | |
tree | 62230d2d14861c14814d6bfcc98b7ee2e7c170fc /src/com/jogamp/opencl/util/concurrent/CLQueueContext.java | |
parent | dedded707fc70fda3e40cf963d208202f8d6c42b (diff) |
concurrent utils bugfixes and improvements.
- more utility methods
- generics fixes
- basic junit test for CLCommandQueuePool
- javadoc and argument validation
Diffstat (limited to 'src/com/jogamp/opencl/util/concurrent/CLQueueContext.java')
-rw-r--r-- | src/com/jogamp/opencl/util/concurrent/CLQueueContext.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java b/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java index 3956f93d..11b86889 100644 --- a/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java +++ b/src/com/jogamp/opencl/util/concurrent/CLQueueContext.java @@ -4,6 +4,7 @@ package com.jogamp.opencl.util.concurrent; import com.jogamp.opencl.CLCommandQueue; +import com.jogamp.opencl.CLContext; import com.jogamp.opencl.CLKernel; import com.jogamp.opencl.CLProgram; import com.jogamp.opencl.CLResource; @@ -24,6 +25,10 @@ public abstract class CLQueueContext implements CLResource { return queue; } + public CLContext getCLContext() { + return queue.getContext(); + } + public static class CLSimpleQueueContext extends CLQueueContext { public final CLProgram program; @@ -39,6 +44,10 @@ public abstract class CLQueueContext implements CLResource { return kernels; } + public CLKernel getKernel(String name) { + return kernels.get(name); + } + public CLProgram getProgram() { return program; } |