native-utils
native-utils copied to clipboard
thread safety?
In my app, I'm seeing loadLibraryFromJar called in multiple places such that I'm getting multiple instances of the temp file from the same process. I'm not sure if that's a problem, but I'd appreciate some advice.
Should I wrap code which calls loadLibraryFromJar in a synchronized method and/or have a check to avoid calling this repeatedly? Relatedly, is there a reason neither of these approaches are implemented in native-utils itself?