Interface CLEventCallbackI

  • All Superinterfaces:
    CallbackI, CallbackI.V, Pointer
    All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface CLEventCallbackI
    extends CallbackI.V
    Instances of this interface may be passed to the SetEventCallback method.


     void (*) (
         cl_event event,
         cl_int event_command_exec_status,
         void *user_data
    • Field Detail


        static final java.lang.String SIGNATURE
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        the dyncall signature
      • callback

        default void callback​(long args)
        Description copied from interface: CallbackI.V
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.V
        args - pointer to a DCArgs iterator
      • invoke

        void invoke​(long event,
                    int event_command_exec_status,
                    long user_data)
        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.
        event - the event
        event_command_exec_status - 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 - the user-specified value that was passed when calling SetEventCallback