Web lists-archives.org

Re: [Mingw-users] Porting localtime_r and gmtime_r




On 2008-02-05 02:23Z, JonY wrote:
> 
> I am new to porting Unix applications and have little experience with C. 
> The localtime_r and gmtime_r implementation with basic error checking 
> are based on the following sources:
> 
> http://www.opengroup.org/onlinepubs/009695399/functions/localtime.html
> http://www.opengroup.org/onlinepubs/009695399/functions/gmtime.html
> http://mail-archives.apache.org/mod_mbox/httpd-cvs/199910.mbox/%3C19991006064852.5464.qmail@xxxxxxxxxxxxx%3E

[snip code]

At a quick glance, it looks like you didn't do the locking that
apache added to make it thread-safe. Was that a conscious choice,
because msdn says these functions maintain a single 'tm' struct
per thread, at least for this version:
  http://msdn2.microsoft.com/en-us/library/bf12f0hc(VS.80).aspx
of the runtime? (I didn't try to find what the msvc runtime
normally used by MinGW does.)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users