com.jogamp.opencl.util.concurrent
Class CLQueueContext

java.lang.Object
  extended by com.jogamp.opencl.util.concurrent.CLQueueContext
All Implemented Interfaces:
CLResource
Direct Known Subclasses:
CLQueueContext.CLSimpleQueueContext

public abstract class CLQueueContext
extends Object
implements CLResource

Superclass for all per-queue contexts as used in CLCommandQueuePools. A context will usually hold queue (and therefore often device) specific resources used in tasks of the same queue.

Possible candidates for those resources can be compiled CLPrograms, CLKernels or even pre allocated CLBuffers.

Author:
Michael Bien

Nested Class Summary
static class CLQueueContext.CLSimpleQueueContext
          A simple queue context holding a precompiled program and its kernels.
 
Field Summary
 CLCommandQueue queue
           
 
Constructor Summary
CLQueueContext(CLCommandQueue queue)
           
 
Method Summary
 CLContext getCLContext()
           
 CLCommandQueue getQueue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jogamp.opencl.CLResource
isReleased, release
 

Field Detail

queue

public final CLCommandQueue queue
Constructor Detail

CLQueueContext

public CLQueueContext(CLCommandQueue queue)
Method Detail

getQueue

public CLCommandQueue getQueue()

getCLContext

public CLContext getCLContext()