jnr.ffi.provider.jffi.NativeFinalizer Maven / Gradle / Ivy
package jnr.ffi.provider.jffi;
import jnr.ffi.util.ref.FinalizableReferenceQueue;
/**
*
*/
class NativeFinalizer {
private final FinalizableReferenceQueue finalizerQueue = new FinalizableReferenceQueue();
private static final class SingletonHolder {
private static final NativeFinalizer INSTANCE = new NativeFinalizer();
}
public static NativeFinalizer getInstance() {
return SingletonHolder.INSTANCE;
}
public FinalizableReferenceQueue getFinalizerQueue() {
return finalizerQueue;
}
}