summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/jogamp/newt/DefaultEDTUtil.java5
-rw-r--r--src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java3
-rw-r--r--src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java3
3 files changed, 7 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/DefaultEDTUtil.java b/src/newt/classes/jogamp/newt/DefaultEDTUtil.java
index d8d04e79f..3c015d3ec 100644
--- a/src/newt/classes/jogamp/newt/DefaultEDTUtil.java
+++ b/src/newt/classes/jogamp/newt/DefaultEDTUtil.java
@@ -178,7 +178,7 @@ public class DefaultEDTUtil implements EDTUtil {
// drop task and don't wait
task = null;
System.err.println(Thread.currentThread()+": Warning: Default-EDT is about (3) to stop and stopped already, dropping task. Remaining tasks: "+edt.tasks.size()+" - "+edt);
- if(true || DEBUG) {
+ if(DEBUG) {
Thread.dumpStack();
}
}
@@ -190,7 +190,8 @@ public class DefaultEDTUtil implements EDTUtil {
synchronized(edt.tasks) {
rTask = new RunnableTask(task,
wait ? rTaskLock : null,
- true /* always catch and report Exceptions, don't disturb EDT */);
+ true /* always catch and report Exceptions, don't disturb EDT */,
+ wait ? null : System.err);
if(stop) {
rTask.setAttachment(new Boolean(true)); // mark final task, will imply shouldStop:=true
}
diff --git a/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java b/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java
index cecb1dd7e..fc9bbb848 100644
--- a/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java
+++ b/src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java
@@ -160,7 +160,8 @@ public class AWTEDTUtil implements EDTUtil {
} else {
rTask = new RunnableTask(task,
wait ? rTaskLock : null,
- true /* always catch and report Exceptions, don't disturb EDT */);
+ true /* always catch and report Exceptions, don't disturb EDT */,
+ wait ? null : System.err);
AWTEDTExecutor.singleton.invoke(false, rTask);
}
}
diff --git a/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java b/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java
index 7297e5858..2008b5ea4 100644
--- a/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java
+++ b/src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java
@@ -172,7 +172,8 @@ public class SWTEDTUtil implements EDTUtil {
} else {
rTask = new RunnableTask(task,
wait ? rTaskLock : null,
- true /* always catch and report Exceptions, don't disturb EDT */);
+ true /* always catch and report Exceptions, don't disturb EDT */,
+ wait ? null : System.err);
swtDisplay.asyncExec(rTask);
}
}