]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/uxsftp.c
Only run one toplevel callback per event loop iteration.
authorSimon Tatham <anakin@pobox.com>
Sun, 15 Sep 2013 14:05:31 +0000 (14:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 15 Sep 2013 14:05:31 +0000 (14:05 +0000)
commit5c4ce2fadf23bff6f38155df44b5d6040cf80d26
tree96100d88bc56be9c83f84802e379e3543970fd90
parent043a762b5ff1d765cb6e69bb988a43e9ca79dd2f
Only run one toplevel callback per event loop iteration.

This change attempts to reinstate as a universal property something
which was sporadically true of the ad-hockery that came before
toplevel callbacks: that if there's a _very long_ queue of things to
be done through the callback mechanism, the doing of them will be
interleaved with re-checks of other event sources, which might (e.g.)
cause a flag to be set which makes the next callback decide not to do
anything after all.

[originally from svn r10040]
callback.c
putty.h
unix/gtkwin.c
unix/uxplink.c
unix/uxsftp.c
windows/window.c
windows/winplink.c
windows/winsftp.c