diff options
author | Sven Gothel <[email protected]> | 2012-02-22 13:30:03 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-22 13:30:03 +0100 |
commit | 33249b6eca519947b02f3bfbf05b73d73c936094 (patch) | |
tree | 1c648e710398aa7602fe5f56ec1c66a345a92f96 /src/jogl/classes/jogamp/opengl/GLDrawableImpl.java | |
parent | b6d9ff622775fec83c3cced7cfdfcc3a5d7ffb44 (diff) |
DEBUG Output: More thread-names to drawable/context lifecycle; Remove massive '!!!' occurence
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLDrawableImpl.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java index b9c216eab..02a94f31c 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java @@ -148,7 +148,7 @@ public abstract class GLDrawableImpl implements GLDrawable { public final synchronized void setRealized(boolean realizedArg) { if ( realized != realizedArg ) { if(DEBUG) { - System.err.println("setRealized: "+getClass().getName()+" "+realized+" -> "+realizedArg); + System.err.println(getThreadName() + ": setRealized: "+getClass().getName()+" "+realized+" -> "+realizedArg); } realized = realizedArg; AbstractGraphicsDevice aDevice = surface.getGraphicsConfiguration().getScreen().getDevice(); @@ -174,7 +174,7 @@ public abstract class GLDrawableImpl implements GLDrawable { } } } else if(DEBUG) { - System.err.println("setRealized: "+getClass().getName()+" "+this.realized+" == "+realizedArg); + System.err.println(getThreadName() + ": setRealized: "+getClass().getName()+" "+this.realized+" == "+realizedArg); } } protected abstract void setRealizedImpl(); @@ -210,6 +210,10 @@ public abstract class GLDrawableImpl implements GLDrawable { ",\n\tWindow "+getNativeSurface()+"]"; } + protected static String getThreadName() { + return Thread.currentThread().getName(); + } + protected GLDrawableFactory factory; protected NativeSurface surface; protected GLCapabilitiesImmutable requestedCapabilities; |