21 messages in com.mysql.lists.plusplusRE: v2.2 release plan
FromSent OnAttachments
Warren Young09 Jan 2007 05:39 
Joel Fielder10 Jan 2007 08:20 
Matt Dargavel10 Jan 2007 09:20 
Matt Dargavel10 Jan 2007 10:12 
Pedro Lamarão10 Jan 2007 10:52 
Warren Young11 Jan 2007 19:15 
Joel Fielder12 Jan 2007 01:06 
Warren Young12 Jan 2007 02:16 
Matt Dargavel12 Jan 2007 02:57 
Warren Young12 Jan 2007 03:44 
Pedro Lamarão12 Jan 2007 05:40 
Warren Young12 Jan 2007 08:02 
Jim Wallace12 Jan 2007 10:05 
Pedro Lamarão12 Jan 2007 10:16 
Warren Young12 Jan 2007 10:21 
Warren Young12 Jan 2007 10:24 
Orton, Steve12 Jan 2007 11:11 
Jim Wallace12 Jan 2007 11:12 
Chris Frey12 Jan 2007 12:33 
Warren Young12 Jan 2007 12:38 
Chris Frey15 Jan 2007 19:15 
Subject:RE: v2.2 release plan
From:Matt Dargavel (ma@shout-telecoms.com)
Date:01/10/2007 09:20:42 AM
List:com.mysql.lists.plusplus

That surprised me a little, so I did a little digging and it seems Microsoft made localtime thread safe for VS2005 / C++ 8.

That means using localtime would mean dropping support for VS 2003. Not sure if that is a problem or not...

Cheers,

Matt.

http://msdn2.microsoft.com/en-us/library/bf12f0hc(VS.80).aspx "Both the 32-bit and 64-bit versions of gmtime, mktime, mkgmtime, and localtime all use a single tm structure per thread for the conversion. Each call to one of these routines destroys the result of the previous call."

By this I read that Mingw is simply delegating localtime straight into the standard library shipped on all versions of Windows, meaning that for Mingw, we can do the same as in pthreads: