+ private static Task current = null;
+ public static Task current() { return current; }
+
+ /** synchronizd so that we can safely call it from an event-delivery thread, in-context */
+ public static synchronized void renderAll() {
+ for(int i=0; i<Surface.allSurfaces.size(); i++) {
+ Surface s = ((Surface)Surface.allSurfaces.elementAt(i));
+ do { s.render(); } while(s.abort);
+ }
+ }
+
+
+