/** Implements cooperative multitasking */
public class Scheduler {
+ // FIXME: prepending events messes with keysate -- make a "no re-ordering" invariant?
+
// Public API Exposed to org.xwt /////////////////////////////////////////////////
private static Scheduler singleton;
try {
t.perform();
// FEATURE: be smarter about this
- if (t != Surface.renderAll) add(Surface.renderAll);
+ //if (t != Surface.renderAll) add(Surface.renderAll);
+ Surface.renderAll.perform();
} catch (JSExn e) {
Log.log(Scheduler.class, "a JavaScript thread spawned with xwt.thread() threw an exception:");
Log.log(Scheduler.class, e.toString());