]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Render timing.c robust in the face of strangeness. The strangenesses
authorSimon Tatham <anakin@pobox.com>
Mon, 28 Mar 2005 17:48:24 +0000 (17:48 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 28 Mar 2005 17:48:24 +0000 (17:48 +0000)
commitd0beed9aba20865b9829e3203b4067e8822a0f4d
treec4a1690bfa7d59cf77c5e3a140482e40a456a2a1
parent2daa1b737c9f2c8ac70de0aa8662aac7a33f281b
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.

[originally from svn r5556]
timing.c
unix/unix.h
unix/uxmisc.c
unix/uxplink.c
unix/uxsftp.c
windows/winstuff.h