]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Add a general way to request an immediate top-level callback.
authorSimon Tatham <anakin@pobox.com>
Sat, 17 Aug 2013 16:06:08 +0000 (16:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 17 Aug 2013 16:06:08 +0000 (16:06 +0000)
commit3d31dde9e7148d36fd9d330120ed8d0b7b241c9e
tree86c47ea6203b10ec952225ac6fcf96cb590dd817
parent0a3fc2742d426215b8b808e3c87e3383c13152ee
Add a general way to request an immediate top-level callback.

This is a little like schedule_timer, in that the callback you provide
will be run from the top-level message loop of whatever application
you're in; but unlike the timer mechanism, it will happen
_immediately_.

The aim is to provide a general way to avoid re-entrance of code, in
cases where just _doing_ the thing you want done is liable to trigger
a confusing recursive call to the function in which you came to the
decision to do it; instead, you just request a top-level callback at
the message loop's earliest convenience, and do it then.

git-svn-id: http://svn.tartarus.org/sgt/putty@10019 cda61777-01e9-0310-a592-d414129be87e
Recipe
callback.c [new file with mode: 0644]
putty.h
unix/gtkwin.c
unix/uxplink.c
unix/uxsftp.c
windows/window.c
windows/winplink.c
windows/winsftp.c