summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-03-18 03:09:15 +0100
committerSven Gothel <[email protected]>2013-03-18 03:09:15 +0100
commited911109d40e0fca3b2263a4617f35d475612549 (patch)
tree78e0bfa5244c262cffb78d2ba4628d8841989263 /src/newt
parent28c6472335b924080d638b33a28f8f4eedb459b1 (diff)
Adapt to GlueGen commit b1eb7ca6b9d7dec7ff62c1f1e8ef0a0545724d2f: Function- RunnableTask adds PrintStream 'exceptionOut' argument in ctor.
Diffstat (limited to 'src/newt')
-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);
}
}