Package com.jogamp.opencl.util.concurrent.CLExecutorService

Examples of com.jogamp.opencl.util.concurrent.CLExecutorService.CommandQueueThread


public abstract class CLRecursiveTask<C extends CLQueueContext, R> extends RecursiveTask<R> implements CLPoolable<C, R> {

    @Override
    protected final R compute() {
       
        CommandQueueThread thread = (CommandQueueThread)Thread.currentThread();

        final Object key = getContextKey();

        CLQueueContext context = thread.getContextMap().get(key);
        if(context == null) {
            context = createQueueContext(thread.getQueue());
            thread.getContextMap().put(key, context);
        }

        @SuppressWarnings("unchecked")
        CLPoolable<CLQueueContext, R> task = (CLPoolable<CLQueueContext, R>) this;
View Full Code Here

TOP

Related Classes of com.jogamp.opencl.util.concurrent.CLExecutorService.CommandQueueThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.