SafeJNI icon indicating copy to clipboard operation
SafeJNI copied to clipboard

No detaching threads

Open vyshas opened this issue 9 years ago • 1 comments

Hi,

First of all , thank you for such a library. I'm trying to use it in one of my applications and have come to an issue when its called from different posix or native threads in an Android application C++ layer. A call "tosafejni::callStatic(JAVA_STATIC_CLASS, "getfun") " will call AttachcurrentThread() . Now after its use , it doesnt call detach thread. This can lock and crash the thread, hence crashing the VM . It would be great if you could have a look at this issue.

vyshas avatar Dec 11 '15 14:12 vyshas

I have correct the thread unsafe issues in my project modify from this project, you call try it.

xqyphp avatar Apr 16 '19 03:04 xqyphp