]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - Recipe
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)
commit75c79e318fffc6db076861856c1320fcea849bf2
tree86c47ea6203b10ec952225ac6fcf96cb590dd817
parent883641845fae43821e6362a234d531b22d01cdd9
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.

[originally from svn r10019]
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