ug4
|
Classes | |
class | JNIThreadException |
Enumerations | |
enum | ExceptionType { ATTACH_FAILED , DETACH_FAILED , NOT_ATTACHED } |
Functions | |
JNIEnv * | attachThread (JavaVM *javaVM) |
void | detachThread (JavaVM *javaVM) |
JNIEnv * | getEnv (JavaVM *javaVM) |
|
inline |
Attaches the current thread to the JVM. If the thread is already attached this is equivalent to getEnv()
.
javaVM | Java VM to operate on |
JNIThreadException |
References ATTACH_FAILED, and ug::vrl::javaVM.
Referenced by ug::vrl::MessageBuffer::addMessage().
|
inline |
Detaches the current thread from the JVM.
javaVM | Java VM to operate on |
JNIThreadException |
References DETACH_FAILED, and ug::vrl::javaVM.
|
inline |
Returns the JVM environment of the current thread.
javaVM | Java VM to operate on |
JNIThreadException |
References ug::vrl::javaVM, and NOT_ATTACHED.
Referenced by ug::vrl::VRLUserLinker< TData, dim, TDataIn >::eval_deriv(), ug::vrl::VRLUserLinker< TData, dim, TDataIn >::eval_value(), ug::vrl::VRLCondUserNumber< dim >::evaluate(), ug::vrl::VRLUserData< TData, dim >::evaluate(), ug::vrl::VRLUserLinker< TData, dim, TDataIn >::releaseGlobalRefs(), ug::vrl::VRLUserData< TData, dim >::releaseGlobalRefs(), ug::vrl::VRLCondUserNumber< dim >::releaseGlobalRefs(), ug::vrl::VRLUserData< TData, dim >::set_vrl_callback(), ug::vrl::VRLCondUserNumber< dim >::set_vrl_callback(), ug::vrl::VRLUserLinker< TData, dim, TDataIn >::set_vrl_deriv_callback(), and ug::vrl::VRLUserLinker< TData, dim, TDataIn >::set_vrl_value_callback().