diff options
Diffstat (limited to 'src/java/com/jogamp')
-rw-r--r-- | src/java/com/jogamp/common/util/RunnableTask.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/RunnableTask.java b/src/java/com/jogamp/common/util/RunnableTask.java index 3707ce8..5ae102f 100644 --- a/src/java/com/jogamp/common/util/RunnableTask.java +++ b/src/java/com/jogamp/common/util/RunnableTask.java @@ -110,6 +110,12 @@ public class RunnableTask implements Runnable { public boolean isExecuted() { return 0 != ts2 ; } /** + * @return True if invoking thread waits until done, + * ie a <code>notifyObject</code> was passed, otherwise false; + */ + public boolean hasWaiter() { return null != notifyObject; } + + /** * @return A Throwable thrown while execution if any */ public Throwable getThrowable() { return runnableException; } |