Task: an operation that can be executed by multiple threads in parallel.
TaskDeviceRequirement
Specifies which device (CPU and/or GPU) is used to run the task.
@ CPU_ONLY
this task does not use GPU
Task calling method of a Java object.
ThreadIndex getMaxThreads() const
Gives the upper limint on the number of threads the task may be performed by.
static const char * JAVA_METHOD_NAME
called method name
jmethodID callbackMethodId
TaskDeviceRequirement getUsedDevices() const
Communicates devices (CPU and/or GPU) the task is run on.
CallbackTask(JNIEnv *jenv)
static const char * JAVA_CLASS_NAME
callback object java class name
bool process(TaskThread &thread)
Executes the task on CPU within a given thread.
void setCallbackObject(JNIEnv *jenv, jobject obj)
Sets the object to be called.
unsigned char ThreadIndex
number of threads / thread index