Class CLEventCallback

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.opencl.CLEventCallback
All Implemented Interfaces:
AutoCloseable, CLEventCallbackI, CallbackI, NativeResource, Pointer

public abstract class CLEventCallback extends Callback implements CLEventCallbackI
Instances of this class may be passed to the SetEventCallback method.

Type


 void (*CLEventCallbackI.invoke(long, int, long)) (
     cl_event event,
     cl_int event_command_exec_status,
     void *user_data
 )
  • Method Details

    • create

      public static CLEventCallback create(long functionPointer)
      Creates a CLEventCallback instance from the specified function pointer.
      Returns:
      the new CLEventCallback
    • createSafe

      @Nullable public static CLEventCallback createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static CLEventCallback create(CLEventCallbackI instance)
      Creates a CLEventCallback instance that delegates to the specified CLEventCallbackI instance.