diff options
author | Sven Gothel <[email protected]> | 2020-02-05 07:24:23 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-02-05 07:24:23 +0100 |
commit | df57187a03c5801d4bbd2fb1bb1b0f87cc62bb3c (patch) | |
tree | 313517928c12ca28add30f8e77369d0b55890f44 /java/jni/JNIMem.hpp | |
parent | e140e0ab0f4beec333fdc39a8a62704195032139 (diff) |
JNIEnvContainer::attach/detach: Reuse GetEnv's JNIEnv if available and don't detach GetEnv's JNIEnv.
Diffstat (limited to 'java/jni/JNIMem.hpp')
-rw-r--r-- | java/jni/JNIMem.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/jni/JNIMem.hpp b/java/jni/JNIMem.hpp index d4e0e33..389a915 100644 --- a/java/jni/JNIMem.hpp +++ b/java/jni/JNIMem.hpp @@ -36,6 +36,7 @@ extern JavaVM* vm; class JNIEnvContainer { private: JNIEnv *env = nullptr; + bool needsDetach = false; public: /* Attaches this thread to the JVM if it is not already attached */ |