diff options
author | Sven Gothel <[email protected]> | 2011-11-21 15:51:46 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-21 15:51:46 +0100 |
commit | c623e1657500a645243ccf0e045292da42fde718 (patch) | |
tree | a667df0768873d91f20471541cf24f794bc08dc9 /src/nativewindow/classes/jogamp | |
parent | 9e99815645fe255ff3af83ba5b4108907b306a2f (diff) |
NativeWindow GraphicsDevice javadoc cleanup / Factory method access cleanup (minor edits)
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java | 4 | ||||
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java index 45b55e46e..f4fa4b598 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java @@ -109,6 +109,10 @@ public class JAWTUtil { } static { + if(DEBUG) { + System.err.println("JAWTUtil initialization (JAWT/JNI/..."); + // Thread.dumpStack(); + } JAWTJNILibLoader.initSingleton(); JAWTJNILibLoader.loadNativeWindow("awt"); diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java index 5c1839250..79b427ac0 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java +++ b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java @@ -97,11 +97,16 @@ public class X11Util { System.err.println("X11Util firstX11ActionOnProcess: "+firstX11ActionOnProcess+ ", XINITTHREADS_ALWAYS_ENABLED "+XINITTHREADS_ALWAYS_ENABLED+ ", requiresX11Lock "+requiresX11Lock); + // Thread.dumpStack(); } isInit = true; } } + public static synchronized boolean requiresToolkitLock() { + return requiresX11Lock; + } + public static void setX11ErrorHandler(boolean onoff, boolean quiet) { synchronized(setX11ErrorHandlerLock) { if(onoff) { @@ -121,10 +126,6 @@ public class X11Util { } } - public static boolean requiresToolkitLock() { - return requiresX11Lock; - } - public static void lockDefaultToolkit(long dpyHandle) { NativeWindowFactory.getDefaultToolkitLock().lock(); if(requiresX11Lock) { |