Mathieu Virbel
57c8461053
remove const_char, as Cython supports const from 0.18
2016-04-05 14:47:00 +02:00
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
Mathieu Virbel
5ff62b146e
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
Mathieu Virbel
21d365df24
XXX avoid to switch between thread when invoke0 is called / new push_jnienv/pop_jnienv. Without it, if another thread use pyjnius = crash. (i have explored TLS storage for storing j_env, but it seems not available on Android.
2013-06-25 00:08:24 +02:00
Mathieu Virbel
dcfe369f1e
various fix for java/python implementation. It finally start working, but still lot to do.
...
Use: make testimplem, and check the jnius/jnius_utils.pxi:test() function.
2012-12-31 05:15:09 +01:00
Mathieu Virbel
162d011912
add autoclass/ensureclass, auto reflection for JavaObject, and fixes around j_self
2012-08-14 15:09:48 +02:00