summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/NativeLibrary.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-26 20:19:25 +0100
committerSven Gothel <[email protected]>2011-02-26 20:19:25 +0100
commitf8f5fcb7571ff8d7bd876aa8650e7017b653d8cb (patch)
tree0727465f3e9b49a95e3f26e1c967e95a3501e0ca /src/java/com/jogamp/common/os/NativeLibrary.java
parent7b9c3dd1d42b8e8bd1caea8e2caf8f3e15e3ff8f (diff)
DoubleCheckLocking: Added 'ok' comment - volatile var
Diffstat (limited to 'src/java/com/jogamp/common/os/NativeLibrary.java')
-rwxr-xr-xsrc/java/com/jogamp/common/os/NativeLibrary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/os/NativeLibrary.java b/src/java/com/jogamp/common/os/NativeLibrary.java
index b597635..558aa3e 100755
--- a/src/java/com/jogamp/common/os/NativeLibrary.java
+++ b/src/java/com/jogamp/common/os/NativeLibrary.java
@@ -424,7 +424,7 @@ public class NativeLibrary implements DynamicLookupHelper {
private static volatile boolean loadedDynLinkNativeLib;
public static void ensureNativeLibLoaded() {
- if (!loadedDynLinkNativeLib) {
+ if (!loadedDynLinkNativeLib) { // volatile: ok
synchronized (NativeLibrary.class) {
if (!loadedDynLinkNativeLib) {
loadedDynLinkNativeLib = true;