projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ibex.core updates for new api
[org.ibex.core.git]
/
src
/
org
/
ibex
/
util
/
Scheduler.java
diff --git
a/src/org/ibex/util/Scheduler.java
b/src/org/ibex/util/Scheduler.java
index
e4c85fa
..
a2ce69c
100644
(file)
--- a/
src/org/ibex/util/Scheduler.java
+++ b/
src/org/ibex/util/Scheduler.java
@@
-14,7
+14,8
@@
public class Scheduler {
// Public API Exposed to org.ibex /////////////////////////////////////////////////
private static Scheduler singleton;
// Public API Exposed to org.ibex /////////////////////////////////////////////////
private static Scheduler singleton;
- public static void add(Task t) { Log.debug(Scheduler.class, "scheduling " + t); Scheduler.runnable.append(t); }
+ private static String taskDesc(Task t) { return t instanceof JS ? JS.debugToString((JS)t) : t.toString(); }
+ public static void add(Task t) { Log.debug(Scheduler.class, "scheduling " + taskDesc(t)); Scheduler.runnable.append(t); }
public static void init() { if (singleton == null) (singleton = Platform.getScheduler()).run(); }
private static Task current = null;
public static void init() { if (singleton == null) (singleton = Platform.getScheduler()).run(); }
private static Task current = null;
@@
-75,7
+76,7
@@
public class Scheduler {
s._mousey = s.mousey;
}
}
s._mousey = s.mousey;
}
}
- Log.debug(Scheduler.class, "performing " + current);
+ Log.debug(Scheduler.class, "performing " + taskDesc(current));
current.perform();
}
renderAll();
current.perform();
}
renderAll();