summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-26 06:21:49 +0100
committerSven Gothel <[email protected]>2011-11-26 06:21:49 +0100
commitc964517ebf2496b6eec0fb3d688d41b3a3ba626b (patch)
treeed74822ca851199979c2a9942321a359031fdef3 /src/java/com/jogamp/common
parent2bad18b9af99a7e073535e15f9cace6503625587 (diff)
Move TRACE_LOCK from RecursiveLock -> Lock
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r--src/java/com/jogamp/common/util/locks/Lock.java5
-rw-r--r--src/java/com/jogamp/common/util/locks/RecursiveLock.java8
2 files changed, 4 insertions, 9 deletions
diff --git a/src/java/com/jogamp/common/util/locks/Lock.java b/src/java/com/jogamp/common/util/locks/Lock.java
index 41c5a14..28f9642 100644
--- a/src/java/com/jogamp/common/util/locks/Lock.java
+++ b/src/java/com/jogamp/common/util/locks/Lock.java
@@ -36,6 +36,9 @@ import java.security.AccessController;
*/
public interface Lock {
+ /** Enable via the property <code>jogamp.debug.Lock.TraceLock</code> */
+ public static final boolean TRACE_LOCK = Debug.isPropertyDefined("jogamp.debug.Lock.TraceLock", true, AccessController.getContext());
+
/** Enable via the property <code>jogamp.debug.Lock</code> */
public static final boolean DEBUG = Debug.debug("Lock");
@@ -45,7 +48,7 @@ public interface Lock {
/**
* Defines the <code>TIMEOUT</code> for {@link #lock()} in ms,
* and defaults to {@link #DEFAULT_TIMEOUT}.<br>
- * It can be overriden via the system property <code>jogamp.common.utils.locks.Lock.timeout</code>.
+ * It can be overridden via the system property <code>jogamp.common.utils.locks.Lock.timeout</code>.
*/
public static final long TIMEOUT = Debug.getLongProperty("jogamp.common.utils.locks.Lock.timeout", true, AccessController.getContext(), DEFAULT_TIMEOUT);
diff --git a/src/java/com/jogamp/common/util/locks/RecursiveLock.java b/src/java/com/jogamp/common/util/locks/RecursiveLock.java
index 77d7534..e3d677a 100644
--- a/src/java/com/jogamp/common/util/locks/RecursiveLock.java
+++ b/src/java/com/jogamp/common/util/locks/RecursiveLock.java
@@ -28,18 +28,10 @@
package com.jogamp.common.util.locks;
-import jogamp.common.Debug;
-import java.security.AccessController;
-
-import java.util.LinkedList;
-
/**
* Reentrance locking toolkit, impl a complete fair FIFO scheduler
*/
public interface RecursiveLock extends LockExt {
-
- public static final boolean TRACE_LOCK = Debug.isPropertyDefined("jogamp.debug.Lock.TraceLock", true, AccessController.getContext());
-
/** Return the number of locks issued to this lock by the same thread.
* A hold count of 0 identifies this lock as unlocked.<br>
* A hold count of 1 identifies this lock as locked.<br>