Fix rare duplicate time issue On systems with imprecise clocks
authorSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:07:34 +0000 (20:07 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:07:34 +0000 (20:07 +0000)
commitfee13cf6ecf3bbc5290a7c13bc93ab1132cbaca4
treeb3d89eabb7502b89a1e1ad6b470e19c163442bcd
parent7045080510e0c0738b472ad7d648775a201f4ab3
Fix rare duplicate time issue On systems with imprecise clocks
(e.g. windows), there was as issue where microsecond rollover could
conceivably cause the same time to be reported twice. Also document
potential performance improvement by using thread-local storage for
last_time and eliminating the mutex.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Signed-off-by: Sam Hartman <hartmans@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25088 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/c_ustime.c