summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/util/CLMultiContext.java1
-rw-r--r--src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/util/CLMultiContext.java b/src/com/jogamp/opencl/util/CLMultiContext.java
index 327cdd9a..789ed0f5 100644
--- a/src/com/jogamp/opencl/util/CLMultiContext.java
+++ b/src/com/jogamp/opencl/util/CLMultiContext.java
@@ -35,6 +35,7 @@ public class CLMultiContext implements CLResource {
/**
* Creates a multi context with all devices of the specified platforms.
*/
+ @SuppressWarnings("unchecked")
public static CLMultiContext create(CLPlatform... platforms) {
return create(platforms, CLDeviceFilters.type(ALL));
}
diff --git a/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java b/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
index 4a548b10..fe0b7e1c 100644
--- a/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
+++ b/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
@@ -60,7 +60,7 @@ public class CLTaskCompletionService<R> {
* Creates an CLTaskCompletionService using the supplied pool for base
* task execution the supplied queue as its completion queue.
*/
- public CLTaskCompletionService(CLCommandQueuePool pool, BlockingQueue queue) {
+ public CLTaskCompletionService(CLCommandQueuePool pool, BlockingQueue<Future<R>> queue) {
this.service = new ExecutorCompletionService<R>(pool.getExcecutor(), queue);
this.pool = pool;
}