From 1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 15 Sep 2015 05:12:14 +0200 Subject: Bug 1213: Refine changes .. comments and API - Use InterruptSource.Thread.create(..), while reducing InterruptSource.Thread ctors to 3 variants. - Use InterruptSource.Thread instead of java.lang.Thread where possible - Use SourcedInterruptedException where possible - SingletonInstanceServerSocket: start(), stop() and run() - Persistent-Wait and Cancelable - Add @since 2.3.2 --- src/java/com/jogamp/common/util/TaskBase.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/common/util/TaskBase.java') diff --git a/src/java/com/jogamp/common/util/TaskBase.java b/src/java/com/jogamp/common/util/TaskBase.java index 518aeba..0fe85e4 100644 --- a/src/java/com/jogamp/common/util/TaskBase.java +++ b/src/java/com/jogamp/common/util/TaskBase.java @@ -80,7 +80,10 @@ public abstract class TaskBase implements Runnable { } } - /** Returns the execution thread or {@code null} if not yet {@link #run()}. */ + /** + * Returns the execution thread or {@code null} if not yet {@link #run()}. + * @since 2.3.2 + */ public final Thread getExecutionThread() { return execThread; } @@ -135,7 +138,7 @@ public abstract class TaskBase implements Runnable { /** * @return !{@link #isExecuted()} && !{@link #isFlushed()} */ - public final boolean isInQueue() { return !isExecuted() && !isFlushed(); } + public final boolean isInQueue() { return !isExecuted && !isFlushed; } /** * @return True if executed, otherwise false; -- cgit v1.2.3