[java-atk-wrapper] JNI: implement DetachCurrentThread function



commit 08c4311530780a1965a118656400510b92dcccea
Author: Magdalen Berns <m berns thismagpie com>
Date:   Fri Feb 27 21:29:36 2015 +0000

    JNI: implement DetachCurrentThread function
    
    This method still needs to be appropriately called in lots of
    places to be of use, but in principle the attached threads ought
    to be detached so here it is.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745312

 jni/src/jawutil.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/jni/src/jawutil.c b/jni/src/jawutil.c
index fa0d5f3..700e00e 100644
--- a/jni/src/jawutil.c
+++ b/jni/src/jawutil.c
@@ -490,6 +490,15 @@ jaw_util_get_jni_env(void)
   return NULL;
 }
 
+
+void
+jaw_util_detach(void)
+{
+  JavaVM* jvm;
+  jvm = cachedJVM;
+  (*jvm)->DetachCurrentThread(jvm);
+}
+
 static jobject
 jaw_util_get_java_acc_role (JNIEnv *jniEnv, const gchar* roleName)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]