From b1eb7ca6b9d7dec7ff62c1f1e8ef0a0545724d2f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Mar 2013 03:00:45 +0100 Subject: 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. --- src/java/com/jogamp/common/util/locks/Lock.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/java/com/jogamp/common/util/locks/Lock.java') 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 jogamp.debug.Lock */ 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 TIMEOUT for {@link #lock()} in ms, - * and defaults to {@link #DEFAULT_TIMEOUT}.
+ * The TIMEOUT for {@link #lock()} in ms, + * defaults to {@link #DEFAULT_TIMEOUT}. + *

* It can be overridden via the system property jogamp.common.utils.locks.Lock.timeout. + *

*/ public static final long TIMEOUT = Debug.getLongProperty("jogamp.common.utils.locks.Lock.timeout", true, DEFAULT_TIMEOUT); -- cgit v1.2.3