summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/TestRunnableTask01.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/TestRunnableTask01.java
parent1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 (diff)
Bug 1213: Use InterruptSource.Thread
Diffstat (limited to 'src/junit/com/jogamp/common/util/TestRunnableTask01.java')
-rw-r--r--src/junit/com/jogamp/common/util/TestRunnableTask01.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/junit/com/jogamp/common/util/TestRunnableTask01.java b/src/junit/com/jogamp/common/util/TestRunnableTask01.java
index 76c2d2a..6fd8f19 100644
--- a/src/junit/com/jogamp/common/util/TestRunnableTask01.java
+++ b/src/junit/com/jogamp/common/util/TestRunnableTask01.java
@@ -60,7 +60,7 @@ public class TestRunnableTask01 extends SingletonJunitCase {
System.err.println("BB.0: "+syncObject);
synchronized (syncObject) {
System.err.println("BB.1: "+syncObject);
- new Thread(clientAction, Thread.currentThread().getName()+"-clientAction").start();
+ new InterruptSource.Thread(null, clientAction, Thread.currentThread().getName()+"-clientAction").start();
try {
System.err.println("BB.2");
syncObject.wait();
@@ -88,7 +88,7 @@ public class TestRunnableTask01 extends SingletonJunitCase {
System.err.println("BB.0: "+rTask.getSyncObject());
synchronized (rTask.getSyncObject()) {
System.err.println("BB.1: "+rTask.getSyncObject());
- new Thread(rTask, Thread.currentThread().getName()+"-clientAction").start();
+ new InterruptSource.Thread(null, rTask, Thread.currentThread().getName()+"-clientAction").start();
try {
System.err.println("BB.2");
rTask.getSyncObject().wait();