MCPcopy Create free account
hub / github.com/java-native-access/jna / disposeAll

Method disposeAll

src/com/sun/jna/NativeLibrary.java:673–684  ·  view source on GitHub ↗

Close all open native libraries.

()

Source from the content-addressed store, hash-verified

671
672 /** Close all open native libraries. */
673 static void disposeAll() {
674 Set<Reference<NativeLibrary>> values;
675 synchronized(libraries) {
676 values = new LinkedHashSet<>(libraries.values());
677 }
678 for (Reference<NativeLibrary> ref : values) {
679 NativeLibrary lib = ref.get();
680 if (lib != null) {
681 lib.close();
682 }
683 }
684 }
685
686 /** Close the native library we're mapped to. */
687 public void close() {

Callers 2

disposeMethod · 0.95

Calls 2

closeMethod · 0.95
getMethod · 0.45

Tested by 1