]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commit730312b22e0d91d3bf0c6cd01c55d9714539d12a
treec4a1690bfa7d59cf77c5e3a140482e40a456a2a1
parent2f5fbb7c1335fd076bcff53f4394a13e6b2e94ba
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.

git-svn-id: http://svn.tartarus.org/sgt/putty@5556 cda61777-01e9-0310-a592-d414129be87e
timing.c
unix/unix.h
unix/uxmisc.c
unix/uxplink.c
unix/uxsftp.c
windows/winstuff.h