using mutex or another synchronisation methods for C and Java code through JNI
Is there any way I can 开发者_开发问答synchronize the data(data sharing) between C and Java code with JNI using mutex or any other methods.
Please let me know if you have any documentation about the methods for data sharing.
You can use any lock you prefer in C and make it available to Java via JNI. You can do the reverse as well, calling a method in Java from C to use the lock.
I would do it natively in the framework which created the thread.
精彩评论