X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2FScheduler.java;h=09487bd5ff2076d6a73b1a40aa0f1842a35f590a;hb=b1568b13f53ca805911fcd7737daf79492d6be1f;hp=358a0f7b315d0f91e98721f8a27679ea23489d21;hpb=753c136696402d156d7eb558d2484dd5fcbab713;p=org.ibex.core.git diff --git a/src/org/ibex/Scheduler.java b/src/org/ibex/Scheduler.java index 358a0f7..09487bd 100644 --- a/src/org/ibex/Scheduler.java +++ b/src/org/ibex/Scheduler.java @@ -13,7 +13,7 @@ public class Scheduler { private static Scheduler singleton; public static interface Task { public abstract void perform() throws IOException, JSExn; } - public static void add(Task t) { Scheduler.runnable.append(t); } + public static void add(Task t) { Log.debug(Scheduler.class, "scheduling " + t); Scheduler.runnable.append(t); } public static void init() { if (singleton == null) (singleton = Platform.getScheduler()).run(); } private static Task current = null; @@ -74,12 +74,12 @@ public class Scheduler { s._mousey = s.mousey; } } + Log.debug(Scheduler.class, "performing " + current); current.perform(); } renderAll(); } catch (JSExn e) { Log.info(Scheduler.class, "a JavaScript thread spawned with ibex.thread() threw an exception:"); - Log.info(Scheduler.class, "JS Exception: " + e.getObject() + "\n" + e.backtrace()); Log.info(Scheduler.class,e); } catch (Exception e) { Log.info(Scheduler.class, "a Task threw an exception which was caught by the scheduler:");