diff options
author | Sven Gothel <[email protected]> | 2022-05-05 08:57:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-05 08:57:05 +0200 |
commit | fea8341ff36a9a3b1a27d3e45c520f3cfe3e331d (patch) | |
tree | 7001f6cc1b9f3e6b0c2aeb61d5ceb02d3d5a8fb3 /include/jau | |
parent | 1a6d06fff98c11e6cb762671486fbebe67382dfa (diff) |
JavaGlobalObj::dtor: Hold JNIGlobalRef lock while fetching jobject and call into java mNotifyDeleted
Diffstat (limited to 'include/jau')
-rw-r--r-- | include/jau/jni/jni_mem.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/jau/jni/jni_mem.hpp b/include/jau/jni/jni_mem.hpp index ba5a282..b99f68a 100644 --- a/include/jau/jni/jni_mem.hpp +++ b/include/jau/jni/jni_mem.hpp @@ -80,6 +80,7 @@ extern thread_local JNIEnvContainer jni_env; */ class JNIGlobalRef { private: + friend class JavaGlobalObj; mutable std::mutex mtx; jobject object; |