On 09/05/2009 1:57 PM, Tom Jackson wrote:
On Sat, 2009-05-09 at 13:36 -0700, Jeff Hobbs wrote:
On 09/05/2009 1:32 PM, Tom Jackson wrote:
Anyone know if the Tcl clock functions are thread-safe?
Yes, they are. 8.4 had a few issues earlier on, but 8.5 has a
completely rewritten 'clock' that certainly does away with those issues.
How about the latest 8.4 version? Nothing wrong with 8.5, but there are
a few incompatibilities between the two.
The last known OS thread-safety call issues in 8.4 were with
gethostbyname, et al and corrected for 8.4.14 (Y2006). The checks for
calls like localtime_r have been in since longer. Assuming strftime is
mt-safe, all is ok (the man page is silent on that, but it does print
into a passed in buffer).
This may not be important, my only reason for asking is the potential
problem with a non-english locale, but that seems just as likely to
affect Tcl.
Yes, but indeed 8.5 can control that over the OS level. You mention
incompatibilities - what are they? It should be 100% upwards
compatible, though it has new features. However, it isn't necessarily
100% compatible on the date scan detection, since 8.4- was always
guess-heuristic based, while 8.5 is more deterministic.
Jeff
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.