simon-svn: putty: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Mon Mar 28 18:48:24 BST 2005


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       5556
Date:           2005-03-28 18:48:24 +0100 (Mon, 28 Mar 2005)

Log message (11 lines):
Render timing.c robust in the face of strangeness. The strangenesses
in question vary per OS: on Windows the problem is that WM_TIMER
sometimes goes off too early, so that GetTickCount() is right and
the callback time is wrong, whereas on Unix the problem is that my
GETTICKCOUNT implementation comes from the system clock which means
it can change suddenly and non-monotonically if the sysadmin is
messing about (meaning that the timing of callbacks from GTK or
select timeouts is _more_ likely to be right than GETTICKCOUNT).
This checkin provides band-aid workarounds for both problems, which
aren't pretty but ought to at least prevent catastrophic assertion
failure.

Modified files:
U   putty/timing.c
U   putty/unix/unix.h
U   putty/unix/uxmisc.c
U   putty/unix/uxplink.c
U   putty/unix/uxsftp.c
U   putty/windows/winstuff.h

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=5556&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/timing.c?rev=5556&r1=5555&r2=5556
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/unix/unix.h?rev=5556&r1=5555&r2=5556
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/unix/uxmisc.c?rev=5556&r1=5555&r2=5556
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/unix/uxplink.c?rev=5556&r1=5555&r2=5556
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/unix/uxsftp.c?rev=5556&r1=5555&r2=5556
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winstuff.h?rev=5556&r1=5555&r2=5556



More information about the tartarus-commits mailing list