From e612416fd3ea802d5fa572729f035e5e64674349 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 5 May 2013 13:32:51 +0200 Subject: RecursiveThreadGroupLockImpl01Unfairish: Fix DEBUG output --- .../common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/java/jogamp/common/util/locks/RecursiveThreadGroupLockImpl01Unfairish.java') 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); } -- cgit v1.2.3