diff options
author | Sven Gothel <[email protected]> | 2013-03-18 03:00:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-03-18 03:00:45 +0100 |
commit | b1eb7ca6b9d7dec7ff62c1f1e8ef0a0545724d2f (patch) | |
tree | fd1bb8c41eb1d338bf3185b339a92d583753a39f /src/java/com/jogamp/common/util/locks | |
parent | 1a4514accc8f61ab7ff5fe8c82d22a5ef356c865 (diff) |
Function- RunnableTask: Add PrintStream 'exceptionOut' argument allowing non blocking exceptions to be shown.
Exceptions occuring on non blocking off-thread tasks shall at least be made visible
while not allowed to crash the system.
Diffstat (limited to 'src/java/com/jogamp/common/util/locks')
-rw-r--r-- | src/java/com/jogamp/common/util/locks/Lock.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/util/locks/Lock.java b/src/java/com/jogamp/common/util/locks/Lock.java index 33a093b..ea29763 100644 --- a/src/java/com/jogamp/common/util/locks/Lock.java +++ b/src/java/com/jogamp/common/util/locks/Lock.java @@ -41,13 +41,15 @@ public interface Lock { /** Enable via the property <code>jogamp.debug.Lock</code> */ public static final boolean DEBUG = Debug.debug("Lock"); - /** Defines the default {@link #TIMEOUT} value */ + /** The default {@link #TIMEOUT} value, of {@value} ms */ public static final long DEFAULT_TIMEOUT = 5000; // 5s default timeout /** - * Defines the <code>TIMEOUT</code> for {@link #lock()} in ms, - * and defaults to {@link #DEFAULT_TIMEOUT}.<br> + * The <code>TIMEOUT</code> for {@link #lock()} in ms, + * defaults to {@link #DEFAULT_TIMEOUT}. + * <p> * It can be overridden via the system property <code>jogamp.common.utils.locks.Lock.timeout</code>. + * </p> */ public static final long TIMEOUT = Debug.getLongProperty("jogamp.common.utils.locks.Lock.timeout", true, DEFAULT_TIMEOUT); |