Interface CLReportLiveObjectsAlteraCallbackI

    • 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 user_data,
                    long obj_ptr,
                    long type_name,
                    int refcount)
        Reports a live OpenCL API object.
        Parameters:
        user_data - the user_data argument specified to ReportLiveObjectsAltera
        obj_ptr - a pointer to the live object
        type_name - a C string corresponding to the OpenCL API object type. For example, a leaked cl_mem object will have "cl_mem" as its type string.
        refcount - an instantaneous reference count for the object. Consider it to be immediately stale.