diff options
Diffstat (limited to 'src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java')
-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); } |