diff options
author | Sven Gothel <[email protected]> | 2011-09-20 04:58:01 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-20 04:58:01 +0200 |
commit | b12fe7f98a9b523129c310d46698f430d17a8138 (patch) | |
tree | 9579477c1e7ecc65062e714c5957bba8e0b23b21 /src/java/com/jogamp/common/os | |
parent | f357a00e511f0049865392adecc4d042663da6e6 (diff) |
Remove redundant: NativeLibrary.ensureNativeLibLoaded()
Diffstat (limited to 'src/java/com/jogamp/common/os')
-rwxr-xr-x | src/java/com/jogamp/common/os/NativeLibrary.java | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/java/com/jogamp/common/os/NativeLibrary.java b/src/java/com/jogamp/common/os/NativeLibrary.java index f5c3264..beee639 100755 --- a/src/java/com/jogamp/common/os/NativeLibrary.java +++ b/src/java/com/jogamp/common/os/NativeLibrary.java @@ -1,6 +1,7 @@ /* * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. - * + * Copyright (c) 2011 JogAmp Community. All rights reserved. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: @@ -174,7 +175,7 @@ public class NativeLibrary implements DynamicLookupHelper { if (DEBUG) { System.err.println("Trying to load " + path); } - ensureNativeLibLoaded(); + NativeLibLoader.loadGlueGenRT(); long res; if(global) { res = dynLink.openLibraryGlobal(path, DEBUG); @@ -445,16 +446,4 @@ public class NativeLibrary implements DynamicLookupHelper { } return null; } - - private static volatile boolean loadedDynLinkNativeLib; - public static void ensureNativeLibLoaded() { - if (!loadedDynLinkNativeLib) { // volatile: ok - synchronized (NativeLibrary.class) { - if (!loadedDynLinkNativeLib) { - loadedDynLinkNativeLib = true; - NativeLibLoader.loadGlueGenRT(); - } - } - } - } } |