Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLContextDestructorCallback

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

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

Type


void (*invoke) (
    cl_context context,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static CLContextDestructorCallback

Returns:

the new CLContextDestructorCallback
create
(long functionPointer)

Creates a CLContextDestructorCallback instance from the specified function pointer.

public static CLContextDestructorCallback
create(CLContextDestructorCallbackI instance)

Creates a CLContextDestructorCallback instance that delegates to the specified CLContextDestructorCallbackI instance.

public static CLContextDestructorCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLContextDestructorCallbackback to summary
protected CLContextDestructorCallback()
CLContextDestructorCallbackback to summary
pack-priv CLContextDestructorCallback(long functionPointer)

Method Detail

createback to summary
public static CLContextDestructorCallback create(long functionPointer)

Creates a CLContextDestructorCallback instance from the specified function pointer.

Returns:CLContextDestructorCallback

the new CLContextDestructorCallback

createback to summary
public static CLContextDestructorCallback create(CLContextDestructorCallbackI instance)

Creates a CLContextDestructorCallback instance that delegates to the specified CLContextDestructorCallbackI instance.

createSafeback to summary
public static CLContextDestructorCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLContextDestructorCallback.Container

extends CLContextDestructorCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLContextDestructorCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the OpenCL context being deleted.

When the callback function is called by the implementation, this context is no longer valid. context is only provided for reference purposes.

context
,
long
the user-specified value that was passed when calling SetContextDestructorCallback
user_data
)

Implements org.lwjgl.opencl.CLContextDestructorCallbackI.invoke.

Will be called when a context is destroyed.
Inherited from org.lwjgl.opencl.CLContextDestructorCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLContextDestructorCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long context, long user_data)

Implements org.lwjgl.opencl.CLContextDestructorCallbackI.invoke.

Doc from org.lwjgl.opencl.CLContextDestructorCallbackI.invoke.

Will be called when a context is destroyed.

Parameters
context:long

the OpenCL context being deleted.

When the callback function is called by the implementation, this context is no longer valid. context is only provided for reference purposes.

user_data:long

the user-specified value that was passed when calling SetContextDestructorCallback

Annotations
@Override