To be honest I'm not sure how this all works, especially when you throw
mingw in to the mix, but it seems that MS changed localtime to be thread
safe in VS8 (compare
http://msdn2.microsoft.com/en-us/library/bf12f0hc(VS.71).aspx and
http://msdn2.microsoft.com/en-us/library/bf12f0hc(VS.80).aspx ). Which I
guess means that msvcr80.dll contains the thread-safe version.
As far as I could tell by doing some searches there are two builds of mingw,
one that links against crtdll and one against msvcrt. As long as it's the
version that links against msvcrt and it uses version 8, then it should be
fine. Otherwise, I don't think it will be thread safe.
Perhaps I've not understood this correctly though.
> -----Original Message-----
> From: Warren Young [mailto:mysqlpp@stripped]
> Sent: 12 January 2007 10:17
> To: MySQL++ Mailing List
> Subject: Re: v2.2 release plan
>
> Joel Fielder wrote:
> >> Is there a localtime_s? (I can check this myself, but won't do so
> >> immediately, so you might get to this before I do.)
> >
> > Nope.
>
> Okay, then unless I misunderstood the comments by Matt and Pedro, we
> should just use localtime() in the MinGW case. I've checked such a
> change in.
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
> telecoms.com