JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java™ (public API).
CLTask.java
Go to the documentation of this file.
1/*
2 * Created on Tuesday, May 03 2011 18:09
3 */
4package com.jogamp.opencl.util.concurrent;
5
6
7/**
8 * A task executed on a command queue.
9 * @author Michael Bien
10 */
11public interface CLTask<C extends CLQueueContext, R> {
12
13 /**
14 * Runs the task on a queue and returns a result.
15 */
16 R execute(C context);
17
18}
Superclass for all per-queue contexts as used in CLCommandQueuePools.
A task executed on a command queue.
Definition: CLTask.java:11
R execute(C context)
Runs the task on a queue and returns a result.