summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-05 08:57:05 +0200
committerSven Gothel <[email protected]>2022-05-05 08:57:05 +0200
commitfea8341ff36a9a3b1a27d3e45c520f3cfe3e331d (patch)
tree7001f6cc1b9f3e6b0c2aeb61d5ceb02d3d5a8fb3 /include
parent1a6d06fff98c11e6cb762671486fbebe67382dfa (diff)
JavaGlobalObj::dtor: Hold JNIGlobalRef lock while fetching jobject and call into java mNotifyDeleted
Diffstat (limited to 'include')
-rw-r--r--include/jau/jni/jni_mem.hpp1
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;