It was weekend,,my code is in company therefore it was hard to post jni code immediately.
So when I arrive to company, I supposed to post jni code as soon as I can.
You should refer about glthread , you must do the right things on thread-safety.
native to java
using message handler
java to native
using runOnGLThread(if you extends Cocos2dxActivity , you could use runOnGLThread
This has same case queue event in java)
James Chen wrote:
Could you share your jni codes for smartfoxserver2x ? I think lots of developers need it too.