What is the name for this pattern?
senko: I don't know if the pattern has a name, but equivalent of this in GTK+ (and QT, IIRC) desktop world would be called an idle callback (function scheduled to be run at the next iteration of the event loop).More info here: http://developer.gnome.org/doc/GGAD/sec-mainloop.html#Z63