aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-15 06:36:35 +0200
committerSven Gothel <[email protected]>2015-09-15 06:36:35 +0200
commit3e40d97a9a7a60e746b3703d2c7d3f4884159a52 (patch)
treeb7682721b8486025d18adcea3e3dba79e510622b /src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java
parent1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 (diff)
Bug 1213: Use InterruptSource.Thread
Diffstat (limited to 'src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java')
-rw-r--r--src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java b/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java
index a1a9965..ce0087a 100644
--- a/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java
+++ b/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket00.java
@@ -35,6 +35,7 @@ import org.junit.Test;
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
+import com.jogamp.common.util.InterruptSource;
import com.jogamp.junit.util.JunitTracer;
import com.jogamp.junit.util.SingletonJunitCase;
@@ -70,7 +71,7 @@ public class TestSingletonServerSocket00 extends JunitTracer {
}
private Thread startLockUnlockOffThread(final int i) {
- final Thread t = new Thread(new Runnable() {
+ final Thread t = new InterruptSource.Thread(null, new Runnable() {
public void run() {
final SingletonInstance myLock = SingletonInstance.createServerSocket(10, SingletonJunitCase.SINGLE_INSTANCE_LOCK_PORT);
System.err.println(Thread.currentThread().getName()+" LOCK try ..");