78 UG_LOG(
"UG-VRL: Attaching thread failed in "
82 <<
" in line: " << __LINE__ <<
" !");
87 UG_LOG(
"UG-VRL: Detaching thread failed in "
91 <<
" in line: " << __LINE__ <<
" !");
96 UG_LOG(
"UG-VRL: Thread not attached in "
100 <<
" in line: " << __LINE__ <<
" !");
127 JNIEnv** localEnvPtrPtr;
128 JNIEnv* localEnv = NULL;
129 localEnvPtrPtr = &localEnv;
131 int result =
javaVM->AttachCurrentThread(
132 (
void **) (localEnvPtrPtr), NULL);
148 int result =
javaVM->DetachCurrentThread();
172 JNIEnv** localEnvPtrPtr;
173 JNIEnv* localEnv = NULL;
174 localEnvPtrPtr = &localEnv;
176 jint result =
javaVM->GetEnv(
177 (
void **) (localEnvPtrPtr), JNI_VERSION_1_2);
179 if (result != JNI_OK) {
#define PRETTY_FUNCTION
Definition: bindings_vrl.h:45
Definition: threading.h:65
ExceptionType type
Definition: threading.h:106
JNIThreadException(ExceptionType type)
Definition: threading.h:72
#define UG_LOG(msg)
Definition: log.h:367
#define EMPHASIZE_BEGIN
Definition: messaging.h:43
#define EMPHASIZE_END
Definition: messaging.h:44
JNIEnv * getEnv(JavaVM *javaVM)
Definition: threading.h:161
void detachThread(JavaVM *javaVM)
Definition: threading.h:146
JNIEnv * attachThread(JavaVM *javaVM)
Definition: threading.h:116
ExceptionType
Definition: threading.h:47
@ ATTACH_FAILED
Definition: threading.h:51
@ NOT_ATTACHED
Definition: threading.h:59
@ DETACH_FAILED
Definition: threading.h:55
static JavaVM * javaVM
Definition: bindings_vrl.cpp:64