simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Aug 17 17:06:08 BST 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10019
Date:           2013-08-17 17:06:08 +0100 (Sat, 17 Aug 2013)

Log message (12 lines):
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.

Modified files:
U   putty/Recipe
A   putty/callback.c
U   putty/putty.h
U   putty/unix/gtkwin.c
U   putty/unix/uxplink.c
U   putty/unix/uxsftp.c
U   putty/windows/window.c
U   putty/windows/winplink.c
U   putty/windows/winsftp.c

Links:
http://svn.tartarus.org/sgt/?rev=10019&view=rev
http://svn.tartarus.org/sgt/putty/Recipe?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/callback.c?rev=10019&view=markup
http://svn.tartarus.org/sgt/putty/putty.h?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/unix/gtkwin.c?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/unix/uxplink.c?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/unix/uxsftp.c?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/windows/window.c?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/windows/winplink.c?rev=10019&r1=10018&r2=10019
http://svn.tartarus.org/sgt/putty/windows/winsftp.c?rev=10019&r1=10018&r2=10019



More information about the tartarus-commits mailing list