Projects > cpp > Issues > Bug #3993

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

JniHelper - multi-threaded environment issues

Bug #3993 [Closed]
Sheado 2014-02-11 20:34 . Updated over 9 years ago


In v2.2.2 JniHelper's getEnv() was changed. Namely, it set env as a thread specific variable with pthread_setspecific.
This seems to have made it so that JniHelper can no longer be used by multiple threads. v2.2.1 does not have this problem and allows access to the JNI via multiple threads.

To reproduce, simply spawn a new pthread and call getWritablePath(). The app will then crash in JniHelper with an invalid env variable.

Thanks 2014-10-08 02:54

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2014-02-11
Due date:
% Done:


Target version:-