diff options
author | Sven Gothel <[email protected]> | 2013-05-05 13:32:51 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-05-05 13:32:51 +0200 |
commit | e612416fd3ea802d5fa572729f035e5e64674349 (patch) | |
tree | b63b618db69bd2b66d22a186eae5ff1cde39a55d /src/java/jogamp/common | |
parent | 6dd403b5b460e58a4b1cb3ed3e522355f50901b7 (diff) |
RecursiveThreadGroupLockImpl01Unfairish: Fix DEBUG output
Diffstat (limited to 'src/java/jogamp/common')
-rw-r--r-- | src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java b/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java index aac9348..6c43580 100644 --- a/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java +++ b/src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java @@ -172,8 +172,8 @@ public class RecursiveThreadGroupLockImpl01Unfairish final ThreadGroupSync tgSync = (ThreadGroupSync)sync; if( tgSync.getAddOwnerCount()>0 ) { - if(DEBUG) { - System.err.println("++ unlock(0): currentThread "+cur.getName()+", lock: "+this.toString()); + if(TRACE_LOCK) { + System.err.println("--- LOCK XR (tg) "+toString()+", cur "+threadName(cur)+" -> owner..."); } if( tgSync.isOriginalOwner(cur) ) { // original locking owner thread @@ -196,8 +196,9 @@ public class RecursiveThreadGroupLockImpl01Unfairish } } } - if(DEBUG) { + if(TRACE_LOCK) { System.err.println("++ unlock(X): currentThread "+cur.getName()+", lock: "+this.toString()); + System.err.println("--- LOCK X0 (tg) "+toString()+", cur "+threadName(cur)+" -> unlock!"); } super.unlock(taskAfterUnlockBeforeNotify); } |