native-utils icon indicating copy to clipboard operation
native-utils copied to clipboard

thread safety?

Open nitroamos opened this issue 7 years ago • 0 comments

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?

nitroamos avatar Jun 12 '18 22:06 nitroamos