Interface CLSVMFreeCallbackI

    • Method Detail

      • address

        default long address()
        Description copied from interface: Pointer
        Returns the raw pointer address as a long value.
        Specified by:
        address in interface Pointer
        Returns:
        the pointer address
      • 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
        Parameters:
        args - pointer to a DCArgs iterator
      • invoke

        void invoke(long queue,
                    int num_svm_pointers,
                    long svm_pointers,
                    long user_data)
        Will be called to free shared virtual memory pointers.
        Parameters:
        queue - a valid host command-queue
        num_svm_pointers - the number of pointers in the svm_pointers array
        svm_pointers - an array of shared virtual memory pointers to be freed
        user_data - the user-specified value that was passed when calling EnqueueSVMFree