[Native:JNI] Stability, usage and maintenance of shared memory and mutex code

2011-08-27 Thread Ashwin Jayaprakash
; documentation? For the curious, here is the test code I wrote (CC BY-SA) https://gist.github.com/2c3acac03cf954f68001. I would be overjoyed if this was incorporated into the unit tests for Tomcat Native. Thanks, Ashwin Jayaprakash (http://www.ashwinjayaprakash.com)

[Native:JNI] jni.Global vs jni.Lock and fatal error at childInit(..) on Linux

2011-08-30 Thread Ashwin Jayaprakash
Hi, I tried using the jni.Global class to do interprocess locking between 2 processes. I wasn't sure whether to use Global or the Lock class. Both seem to have identical APIs. It worked alright on Windows 7. The 2 communicating processes weren't even parent-child and it still worked. However, on