Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLSVMFreeCallback

extends Callback
implements CLSVMFreeCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLSVMFreeCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opencl.CLSVMFreeCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the EnqueueSVMFree method.

Type


void (*invoke) (
    cl_command_queue queue,
    cl_uint num_svm_pointers,
    void **svm_pointers,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
CLSVMFreeCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static CLSVMFreeCallback

Returns:

the new CLSVMFreeCallback
create
(long functionPointer)

Creates a CLSVMFreeCallback instance from the specified function pointer.

public static CLSVMFreeCallback
create(CLSVMFreeCallbackI instance)

Creates a CLSVMFreeCallback instance that delegates to the specified CLSVMFreeCallbackI instance.

public static CLSVMFreeCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLSVMFreeCallbackback to summary
protected CLSVMFreeCallback()
CLSVMFreeCallbackback to summary
pack-priv CLSVMFreeCallback(long functionPointer)

Method Detail

createback to summary
public static CLSVMFreeCallback create(long functionPointer)

Creates a CLSVMFreeCallback instance from the specified function pointer.

Returns:CLSVMFreeCallback

the new CLSVMFreeCallback

createback to summary
public static CLSVMFreeCallback create(CLSVMFreeCallbackI instance)

Creates a CLSVMFreeCallback instance that delegates to the specified CLSVMFreeCallbackI instance.

createSafeback to summary
public static CLSVMFreeCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLSVMFreeCallback.Container

extends CLSVMFreeCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLSVMFreeCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, CLSVMFreeCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
a valid host command-queue
queue
,
int
the number of pointers in the svm_pointers array
num_svm_pointers
,
long
an array of shared virtual memory pointers to be freed
svm_pointers
,
long
the user-specified value that was passed when calling EnqueueSVMFree
user_data
)

Implements org.lwjgl.opencl.CLSVMFreeCallbackI.invoke.

Will be called to free shared virtual memory pointers.
Inherited from org.lwjgl.opencl.CLSVMFreeCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLSVMFreeCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, CLSVMFreeCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long queue, int num_svm_pointers, long svm_pointers, long user_data)

Implements org.lwjgl.opencl.CLSVMFreeCallbackI.invoke.

Doc from org.lwjgl.opencl.CLSVMFreeCallbackI.invoke.

Will be called to free shared virtual memory pointers.

Parameters
queue:long

a valid host command-queue

num_svm_pointers:int

the number of pointers in the svm_pointers array

svm_pointers:long

an array of shared virtual memory pointers to be freed

user_data:long

the user-specified value that was passed when calling EnqueueSVMFree

Annotations
@Override