Package it.unich.jgmp

Class AllocationMonitor.JGMPFree

java.lang.Object
it.unich.jgmp.AllocationMonitor.JGMPFree
All Implemented Interfaces:
com.sun.jna.Callback, FreeFunc
Enclosing class:
AllocationMonitor

private static class AllocationMonitor.JGMPFree extends Object implements FreeFunc
The custom deallocator.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.jna.Callback

    com.sun.jna.Callback.UncaughtExceptionHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) FreeFuncByReference
     

    Fields inherited from interface com.sun.jna.Callback

    FORBIDDEN_NAMES, METHOD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(com.sun.jna.Pointer ptr, SizeT alloc_size)
    De-allocate the space pointed to by ptr.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • invoke

      public void invoke(com.sun.jna.Pointer ptr, SizeT alloc_size)
      Description copied from interface: FreeFunc
      De-allocate the space pointed to by ptr. ptr is never null, it’s always a previously allocated block of size bytes.
      Specified by:
      invoke in interface FreeFunc