Class Loader.Helper
java.lang.Object
org.bytedeco.javacpp.Loader.Helper
- Enclosing class:
Loader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectaccessGlobalRef(Pointer globalRef) Returns an Object from the JNI global reference stored in the Pointer.static PointerReturns the address found under the given name in the "dynamic symbol tables" (Linux, Mac OS X, etc) or the "export tables" (Windows) of all libraries loaded, or null if not found.static voiddeleteGlobalRef(Pointer globalRef) Deletes the JNI global reference stored in the Pointer.static PointerReturns the JavaVM JNI object, as required by some APIs for initialization.static voidloadGlobal(String filename) Loads all symbols from a library globally, that isdlopen(filename, RTLD_LAZY | RTLD_GLOBAL), or simply by default withLoadLibrary(filename)on Windows.static PointernewGlobalRef(Object object) Returns a JNI global reference stored in a Pointer for the given Object.static intReturns the number of CPU chips installed according to the operating system, or 0 if unknown.static intReturns the number of CPU cores usable according to the operating system, or 0 if unknown.static intReturns the number of processors configured according to the operating system, or 0 if unknown.
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
totalProcessors
Returns the number of processors configured according to the operating system, or 0 if unknown. This value can be greater thanRuntime.availableProcessors()andtotalCores(). -
totalCores
Returns the number of CPU cores usable according to the operating system, or 0 if unknown. For SMT-capable systems, this value may be less thantotalProcessors(). -
totalChips
Returns the number of CPU chips installed according to the operating system, or 0 if unknown. For multi-core processors, this value may be less thantotalCores(). -
addressof
-
loadGlobal
Loads all symbols from a library globally, that isdlopen(filename, RTLD_LAZY | RTLD_GLOBAL), or simply by default withLoadLibrary(filename)on Windows. If the library name passed to one of the other load functions in this class ends with "!", this function will get called on them. -
getJavaVM
-
newGlobalRef
-
accessGlobalRef
-
deleteGlobalRef
-