aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-23 03:39:49 +0200
committerSven Gothel <[email protected]>2023-08-23 03:39:49 +0200
commit7da4c280b7424e63af45725d1735a9de733eee4c (patch)
tree03ec15395eb90e2de4246be6f94d30c216a56a49
parenta235ae5dae463afa16f62f48bf62f896efa80b68 (diff)
InterruptSource.Thread: Add ctor variant w/ sole Runnable argument (was missing)
-rw-r--r--src/java/com/jogamp/common/util/InterruptSource.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/InterruptSource.java b/src/java/com/jogamp/common/util/InterruptSource.java
index 01fcdb5..c688856 100644
--- a/src/java/com/jogamp/common/util/InterruptSource.java
+++ b/src/java/com/jogamp/common/util/InterruptSource.java
@@ -89,6 +89,13 @@ public interface InterruptSource {
super();
}
/**
+ * See {@link Thread#Thread(Runnable)} for details.
+ * @param target explicit {@link Runnable}, may be {@code null}
+ */
+ public Thread(final Runnable target) {
+ super(target);
+ }
+ /**
* See {@link Thread#Thread(ThreadGroup, Runnable)} for details.
* @param tg explicit {@link ThreadGroup}, may be {@code null}
* @param target explicit {@link Runnable}, may be {@code null}