diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/jogamp/common/util/locks/Lock.java | 5 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/locks/RecursiveLock.java | 8 |
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> |