开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜