All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.ffi.provider.jffi.NativeFinalizer Maven / Gradle / Ivy

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy