Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLEventCallback

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

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

Type


void (*invoke) (
    cl_event event,
    cl_int event_command_exec_status,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static CLEventCallback

Returns:

the new CLEventCallback
create
(long functionPointer)

Creates a CLEventCallback instance from the specified function pointer.

public static CLEventCallback
create(CLEventCallbackI instance)

Creates a CLEventCallback instance that delegates to the specified CLEventCallbackI instance.

public static CLEventCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLEventCallbackback to summary
protected CLEventCallback()
CLEventCallbackback to summary
pack-priv CLEventCallback(long functionPointer)

Method Detail

createback to summary
public static CLEventCallback create(long functionPointer)

Creates a CLEventCallback instance from the specified function pointer.

Returns:CLEventCallback

the new CLEventCallback

createback to summary
public static CLEventCallback create(CLEventCallbackI instance)

Creates a CLEventCallback instance that delegates to the specified CLEventCallbackI instance.

createSafeback to summary
public static CLEventCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLEventCallback.Container

extends CLEventCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLEventCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the event
event
,
int
represents the execution status of command for which this callback function is invoked. If the callback is called as the result of the command associated with event being abnormally terminated, an appropriate error code for the error that caused the termination will be passed to event_command_exec_status instead.
event_command_exec_status
,
long
the user-specified value that was passed when calling SetEventCallback
user_data
)

Implements org.lwjgl.opencl.CLEventCallbackI.invoke.

Will be called when the execution status of the command associated with event changes to an execution status equal or past the status specified by command_exec_status.
Inherited from org.lwjgl.opencl.CLEventCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLEventCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long event, int event_command_exec_status, long user_data)

Implements org.lwjgl.opencl.CLEventCallbackI.invoke.

Doc from org.lwjgl.opencl.CLEventCallbackI.invoke.

Will be called when the execution status of the command associated with event changes to an execution status equal or past the status specified by command_exec_status.

Parameters
event:long

the event

event_command_exec_status:int

represents the execution status of command for which this callback function is invoked. If the callback is called as the result of the command associated with event being abnormally terminated, an appropriate error code for the error that caused the termination will be passed to event_command_exec_status instead.

user_data:long

the user-specified value that was passed when calling SetEventCallback

Annotations
@Override