pyjnius/jnius
Mathieu Virbel 857e4c762a add a jnius.detach() method to detach a thread that used some jni.
This cannot be automatic as jnius do not control the thread creation, so it cannot add a callabck to autocall this method.
It must be added by the user before the thread leave, if it used pyjnius inside.

Ref #107
Ref #97
2015-02-07 19:33:19 +01:00
..
src/org/jnius proxy: force GIL on invoke0, and add a special case for $Proxy name (android failed to FindClass) 2013-03-24 18:45:33 -05:00
__init__.py Add specific case for Android/libART: it crash if we check NativeInvocationHandler/InvocationHandler with isAssignableFrom. Plus, include some defaults methods implementation of java.lang.Object (hashCode, toString, equals), which is used by ART. Closes #92. Closes #113. 2014-07-31 13:49:25 +02:00
jni.pxi add a jnius.detach() method to detach a thread that used some jni. 2015-02-07 19:33:19 +01:00
jnius.pyx add a jnius.detach() method to detach a thread that used some jni. 2015-02-07 19:33:19 +01:00
jnius_conversion.pxi use temporary var to handle unsigned char -> jbyte (signed char) 2015-01-27 10:28:14 -06:00
jnius_env.pxi add a jnius.detach() method to detach a thread that used some jni. 2015-02-07 19:33:19 +01:00
jnius_export_class.pxi fix issue with "cannot allocate an array of constant size 0" on Windows / MSVC compiler 2014-05-22 17:54:51 +02:00
jnius_export_func.pxi cleanup proxy code 2013-03-13 21:38:10 +01:00
jnius_jvm_android.pxi jnius: refactor to not save jni env, and use the current pushed/pop env. This resolve few issues when pyjnius is called from a proxy (error such as E/dalvikvm( 6036): JNI ERROR: env->self != thread-self (0x68415860 vs. 0x400bb010); auto-correcting) 2013-06-24 17:58:20 +02:00
jnius_jvm_desktop.pxi Add control of JVM startup options 2014-05-09 18:20:29 +10:00
jnius_localref.pxi Fix string format error in 2.6 2013-08-29 16:14:06 +08:00
jnius_nativetypes.pxi new ByteArray native class, used to transport [B in python, instead of using Python list + integer. 2013-09-11 17:18:49 +02:00
jnius_proxy.pxi Add specific case for Android/libART: it crash if we check NativeInvocationHandler/InvocationHandler with isAssignableFrom. Plus, include some defaults methods implementation of java.lang.Object (hashCode, toString, equals), which is used by ART. Closes #92. Closes #113. 2014-07-31 13:49:25 +02:00
jnius_utils.pxi detect the implementation issue on IsAssignableFrom, and go the other way around for ART. Also dont try to use ExceptionDescribe if there is no Exception throw, or we will get a bad bad native crash. Closes #92 2014-11-13 09:43:11 +01:00
reflect.py last fixes to make pyjnius Java-thread proof. If you call any jnius related from a C thread, it will leak and/or crash (this hasnt been tested). 2013-06-25 11:49:42 +02:00