MCPcopy Create free account
hub / github.com/facebook/SoLoader / getLibraryDependencies

Method getLibraryDependencies

java/com/facebook/soloader/SoLoader.java:754–770  ·  view source on GitHub ↗

Gets the dependencies of a library. @param libName the library file name, including the prefix and extension. @return An array naming the dependencies of the library, or null if it is not found in any SoSources @throws IOException if there is an error reading libName

(String libName)

Source from the content-addressed store, hash-verified

752 * @throws IOException if there is an error reading libName
753 */
754 public static @Nullable String[] getLibraryDependencies(String libName) throws IOException {
755 String[] deps = null;
756
757 sSoSourcesLock.readLock().lock();
758 try {
759 if (sSoSources != null) {
760 for (int i = 0; deps == null && i < sSoSources.length; ++i) {
761 SoSource currentSource = sSoSources[i];
762 deps = currentSource.getLibraryDependencies(libName);
763 }
764 }
765 } finally {
766 sSoSourcesLock.readLock().unlock();
767 }
768
769 return deps;
770 }
771
772 /**
773 * Returns the so file for the specified library. Returns null if the library does not exist or if

Callers

nothing calls this directly

Calls 2

lockMethod · 0.80

Tested by

no test coverage detected