Top Description Fields Constructors Methods
org.lwjgl.opencl

public abstract Class CLEventCallback

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.PointerWrapperAbstract

Instances of this class can be used to handle OpenCL event callbacks. A single CLEventCallback instance should only be used on events generated from the same CLCommandQueue or on user events associated with the same CLContext.
Author
Spasi

Field Summary

Modifier and TypeField and Description
private CLObjectRegistry<CLEvent>
Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private void
handleMessage(long
the CLEvent object pointer
event_address
,
int event_command_exec_status)

Called from native code.

protected abstract void
handleMessage(CLEvent
the CLEvent object
event
,
int
the execution status
event_command_exec_status
)

The callback method.

pack-priv void
setRegistry(final CLObjectRegistry<CLEvent>
the CLEvent object registry
eventRegistry
)

Sets the eventRegistry that contains the CLEvents to which we're registered.

Inherited from org.lwjgl.PointerWrapperAbstract:
checkValidequalsgetPointerhashCodeisValidtoString

Field Detail

eventRegistryback to summary
private CLObjectRegistry<CLEvent> eventRegistry

Constructor Detail

CLEventCallbackback to summary
protected CLEventCallback()

Method Detail

handleMessageback to summary
private void handleMessage(long event_address, int event_command_exec_status)

Called from native code.

Parameters
event_address:long

the CLEvent object pointer

handleMessageback to summary
protected abstract void handleMessage(CLEvent event, int event_command_exec_status)

The callback method.

Parameters
event:CLEvent

the CLEvent object

event_command_exec_status:int

the execution status

setRegistryback to summary
pack-priv void setRegistry(final CLObjectRegistry<CLEvent> eventRegistry)

Sets the eventRegistry that contains the CLEvents to which we're registered.

Parameters
eventRegistry:CLObjectRegistry<CLEvent>

the CLEvent object registry