From ed911109d40e0fca3b2263a4617f35d475612549 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Mar 2013 03:09:15 +0100 Subject: Adapt to GlueGen commit b1eb7ca6b9d7dec7ff62c1f1e8ef0a0545724d2f: Function- RunnableTask adds PrintStream 'exceptionOut' argument in ctor. --- src/newt/classes/jogamp/newt/DefaultEDTUtil.java | 5 +++-- src/newt/classes/jogamp/newt/driver/awt/AWTEDTUtil.java | 3 ++- src/newt/classes/jogamp/newt/swt/SWTEDTUtil.java | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/newt/classes') 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); } } -- cgit v1.2.3